Function at 0x40f4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4aedbc
mov eax, dword fs:[0]
push eax
sub esp, 0x768
mov eax, dword [0x4c3790]
xor eax, esp
mov dword [esp + 0x760], eax
push ebx
push esi
push edi
mov eax, dword [0x4c3790]
xor eax, esp
push eax
lea eax, [esp + 0x778]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x259]
mov edi, edx
push ebx
push ecx
mov dword [esp + 0xb0], esi
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb8], edi
mov byte [esp + 0x260], bl
call fcn.00499a80
add esp, 0xc
push 0x103
lea edx, [esp + 0x361]
push ebx
push edx
mov byte [esp + 0x368], bl
call fcn.00499a80
add esp, 0xc
push 0x103
lea eax, [esp + 0x469]
push ebx
push eax
mov byte [esp + 0x470], bl
call fcn.00499a80
add esp, 0xc
push 0x1ff
lea ecx, [esp + 0x571]
push ebx
push ecx
mov byte [esp + 0x578], bl
call fcn.00499a80
add esp, 0xc
cmp byte [ebp + 0xc], 1
jne 0x40f5ec
add esi, 0x13c
push esi
lea edx, [esp + 0x570]
push str.Loading_User_DB____s
push edx
call fcn.00496464
lea edx, [esp + 0x470]
add esp, 0xc
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40f5e0
jmp 0x40f61d
add esi, 0x240
push esi
lea eax, [esp + 0x570]
push str.Loading_User_DB____s
push eax
call fcn.00496464
lea edx, [esp + 0x470]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40f613
lea eax, [esp + 0x464]
lea esi, [esp + 0x13c]
call fcn.0041aca0
mov dword [esp + 0x780], ebx
cmp dword [esp + 0x244], ebx
jne 0x40f66b
call fcn.00413dd0
mov dword [esp + 0x780], 0xffffffff
mov eax, dword [esp + 0x13c]
cmp eax, ebx
je 0x40f664
push ebx
call fcn.004909a0
add esp, 4
xor al, al
jmp 0x4102c5
call fcn.00413dd0
cmp dword [edi + 0x14], 8
jb 0x40f67a
mov eax, dword [edi]
jmp 0x40f67c
mov eax, edi
push eax
lea ecx, [esp + 0x570]
push str.Loading_Database_for_Table____s
push ecx
call fcn.00496464
add esp, 0xc
call fcn.00413dd0
call fcn.00413dd0
jmp 0x40f6a2
xor ebx, ebx
call fcn.00413dd0
mov eax, dword [esp + 0xac]
lea edx, [esp + 0x254]
push edx
mov byte [esp + 0x360], bl
mov byte [esp + 0x258], bl
call fcn.00403460
lea edx, [esp + 0x360]
mov ecx, eax
lea ebx, [esp + 0x140]
call fcn.0041b3b0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x254]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f6f0
sub eax, edx
je 0x410287
lea eax, [esp + 0x35c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f710
sub eax, edx
je 0x410287
push eax
lea eax, [esp + 0x360]
xor ebx, ebx
mov esi, 0xf
push eax
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.00403f20
mov byte [esp + 0x780], 1
push ebx
push 0x4b71bc
lea ecx, [esp + 0xf0]
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.00403f20
mov byte [esp + 0x780], 2
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call fcn.00494c78
mov dword [esp + 0x84], eax
call fcn.00494a37
push ebx
lea ecx, [esp + 0xa4]
mov esi, eax
call fcn.00494e48
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x40f7c2
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0xa0]
call fcn.00494e70
mov byte [esp + 0x780], 3
mov eax, 0x4b71c0
push 0x20
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x4b71c6
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.004962bc
add esp, 4
cmp eax, ebx
je 0x40f820
mov dword [eax + 4], 0x14
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax], vtable.std::tr1::_Root_node.0
mov dword [eax + 0x1c], ebx
jmp 0x40f822
xor eax, eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, 1
mov edx, ecx
lea esi, [esp + 0x1c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0x100
mov dword [esp + 0x4c], 4
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], 0x8775dfb
call fcn.00406380
mov eax, esi
push eax
call fcn.00405e60
mov edi, eax
cmp edi, ebx
je 0x40f87b
inc dword [edi + 0x1c]
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x40f8a5
dec dword [eax + 0x1c]
jne 0x40f8a5
mov esi, dword [esp + 0x78]
cmp esi, ebx
je 0x40f8a5
lea eax, [esi + 0xc]
mov ecx, esi
mov esi, dword [eax]
mov dword [eax], ebx
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp esi, ebx
jne 0x40f890
mov dword [esp + 0x78], edi
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x110]
push ecx
mov byte [esp + 0x790], 4
call fcn.00405760
add esp, 0x10
mov esi, eax
lea edx, [esp + 0xcc]
mov edi, 0x10
cmp edx, esi
je 0x40f95c
cmp dword [esp + 0xe0], edi
jb 0x40f901
mov eax, dword [esp + 0xcc]
push eax
call fcn.004961b3
add esp, 4
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
cmp dword [esi + 0x14], edi
jae 0x40f937
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [esp + 0xd0]
push esi
push ecx
call fcn.00495d10
add esp, 0xc
jmp 0x40f942
mov edx, dword [esi]
mov dword [esp + 0xcc], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [esp + 0xdc], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0xe0], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [esp + 0x118], edi
jb 0x40f975
mov edx, dword [esp + 0x104]
push edx
call fcn.004961b3
add esp, 4
lea eax, [esp + 0x78]
mov esi, 0xf
push eax
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov byte [esp + 0x784], 2
call fcn.00403650
mov byte [esp + 0x780], 1
cmp dword [esp + 0xfc], edi
jb 0x40f9c2
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.004961b3
add esp, 4
lea eax, [esp + 0x254]
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f9e1
sub eax, edx
push eax
lea edx, [esp + 0x258]
push edx
lea ecx, [esp + 0xb8]
call fcn.00403f20
mov byte [esp + 0x780], 6
push ebx
push 0x4b71bc
lea ecx, [esp + 0xf0]
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.00403f20
mov byte [esp + 0x780], 7
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call fcn.00494c78
mov dword [esp + 0x94], eax
call fcn.00494a37
push ebx
lea ecx, [esp + 0x9c]
mov esi, eax
call fcn.00494e48
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x40fa77
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0x98]
call fcn.00494e70
mov byte [esp + 0x780], 8
mov eax, str.___t_
push 0x20
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x4b71e3
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.004962bc
add esp, 4
cmp eax, ebx
je 0x40fad5
mov dword [eax + 4], 0x14
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax], vtable.std::tr1::_Root_node.0
mov dword [eax + 0x1c], ebx
jmp 0x40fad7
xor eax, eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, 1
mov edx, ecx
lea esi, [esp + 0x1c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0x100
mov dword [esp + 0x4c], 4
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], 0x8775dfb
call fcn.00406380
mov eax, esi
push eax
call fcn.00405e60
mov edi, eax
cmp edi, ebx
je 0x40fb33
inc dword [edi + 0x1c]
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x40fb63
dec dword [eax + 0x1c]
jne 0x40fb63
mov esi, dword [esp + 0x88]
cmp esi, ebx
je 0x40fb63
lea eax, [esi + 0xc]
mov ecx, esi
mov esi, dword [eax]
mov dword [eax], ebx
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp esi, ebx
jne 0x40fb4e
mov dword [esp + 0x88], edi
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x110]
push ecx
mov byte [esp + 0x790], 9
call fcn.00405760
add esp, 0x10
mov esi, eax
lea edx, [esp + 0xb0]
cmp edx, esi
je 0x40fc20
cmp dword [esp + 0xc4], 0x10
jb 0x40fbc1
mov eax, dword [esp + 0xb0]
push eax
call fcn.004961b3
add esp, 4
mov edi, 0xf
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
cmp dword [esi + 0x14], 0x10
jae 0x40fbf9
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [esp + 0xb4]
push esi
push ecx
call fcn.00495d10
add esp, 0xc
jmp 0x40fc04
mov edx, dword [esi]
mov dword [esp + 0xb0], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [esp + 0xc0], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0xc4], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
jmp 0x40fc25
mov edi, 0xf
cmp dword [esp + 0x118], 0x10
jb 0x40fc3f
mov edx, dword [esp + 0x104]
push edx
call fcn.004961b3
add esp, 4
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov byte [esp + 0x784], 7
call fcn.00403650
mov byte [esp + 0x780], 6
cmp dword [esp + 0xfc], 0x10
jb 0x40fc8b
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.004961b3
add esp, 4
push ebx
push 0x4b71bc
lea ecx, [esp + 0xf0]
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.00403f20
mov byte [esp + 0x780], 0xb
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.00494c78
mov dword [esp + 0x74], eax
call fcn.00494a37
push ebx
lea ecx, [esp + 0xac]
mov esi, eax
call fcn.00494e48
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x40fcef
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0xa8]
call fcn.00494e70
mov byte [esp + 0x780], 0xc
mov eax, 0x4b7bb4
push 0x20
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x4b7bb5
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.004962bc
add esp, 4
cmp eax, ebx
je 0x40fd4d
mov dword [eax + 4], 0x14
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax], vtable.std::tr1::_Root_node.0
mov dword [eax + 0x1c], ebx
jmp 0x40fd4f
xor eax, eax
lea edx, [esp + 0x6c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, 1
mov ecx, edx
lea esi, [esp + 0x1c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], 0x100
mov dword [esp + 0x4c], 4
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], 0x8775dfb
call fcn.00406380
mov edx, esi
push edx
call fcn.00405e60
mov edi, eax
cmp edi, ebx
je 0x40fda8
inc dword [edi + 0x1c]
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x40fdd2
dec dword [eax + 0x1c]
jne 0x40fdd2
mov esi, dword [esp + 0x68]
cmp esi, ebx
je 0x40fdd2
lea eax, [esi + 0xc]
mov ecx, esi
mov esi, dword [eax]
mov dword [eax], ebx
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
cmp esi, ebx
jne 0x40fdbd
mov dword [esp + 0x68], edi
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x110]
push eax
mov byte [esp + 0x790], 0xd
call fcn.00405760
add esp, 0x10
mov esi, eax
lea ecx, [esp + 0xb0]
mov edi, 0x10
cmp ecx, esi
je 0x40fe89
cmp dword [esp + 0xc4], edi
jb 0x40fe2e
mov edx, dword [esp + 0xb0]
push edx
call fcn.004961b3
add esp, 4
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
cmp dword [esi + 0x14], edi
jae 0x40fe64
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [esp + 0xb4]
push esi
push eax
call fcn.00495d10
add esp, 0xc
jmp 0x40fe6f
mov ecx, dword [esi]
mov dword [esp + 0xb0], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [esp + 0xc0], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0xc4], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [esp + 0x118], edi
jb 0x40fea2
mov ecx, dword [esp + 0x104]
push ecx
call fcn.004961b3
add esp, 4
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x11c], 0xf
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov byte [esp + 0x784], 0xb
call fcn.00403650
mov byte [esp + 0x780], 6
cmp dword [esp + 0xfc], edi
jb 0x40feee
mov eax, dword [esp + 0xe8]
push eax
call fcn.004961b3
add esp, 4
mov edx, dword [esp + 0xe0]
mov ecx, dword [esp + 0xcc]
mov eax, ecx
cmp edx, edi
jae 0x40ff09
lea eax, [esp + 0xcc]
add eax, dword [esp + 0xdc]
cmp edx, edi
jae 0x40ff1b
lea ecx, [esp + 0xcc]
xor edx, edx
mov word [esp + 0xe8], dx
mov edx, dword [esp + 0x18]
push edx
push eax
push ecx
lea eax, [esp + 0xf4]
push eax
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], ebx
call fcn.00405d00
lea ebx, [esp + 0xe8]
mov byte [esp + 0x780], 0xf
call fcn.00401ef0
mov edi, 8
mov ebx, eax
mov byte [esp + 0x780], 6
mov dword [esp + 0x14], ebx
cmp dword [esp + 0xfc], edi
jb 0x40ff8b
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.004961b3
add esp, 4
xor esi, esi
cmp ebx, esi
je 0x41020b
mov ecx, dword [esp + 0xb0]
mov esi, 0x10
cmp dword [esp + 0xc4], esi
jae 0x40ffb1
lea ecx, [esp + 0xb0]
mov eax, dword [esp + 0xcc]
cmp dword [esp + 0xe0], esi
jae 0x40ffc8
lea eax, [esp + 0xcc]
push ecx
push eax
lea ecx, [esp + 0x574]
push 0x4b7bb8
push ecx
call fcn.00496464
add esp, 0x10
call fcn.00413dd0
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0xb0]
mov eax, ecx
cmp edx, esi
jae 0x40ffff
lea eax, [esp + 0xb0]
add eax, dword [esp + 0xc0]
cmp edx, esi
jae 0x410011
lea ecx, [esp + 0xb0]
xor edx, edx
mov word [esp + 0xe8], dx
mov edx, dword [esp + 0x18]
push edx
push eax
push ecx
lea eax, [esp + 0xf4]
xor esi, esi
push eax
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], esi
call fcn.00405d00
mov byte [esp + 0x780], 0x10
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [esp + 0xe8]
push eax
mov ecx, ebx
call edx
test al, al
sete byte [esp + 0x13]
mov byte [esp + 0x780], 6
cmp dword [esp + 0xfc], edi
jb 0x410084
mov eax, dword [esp + 0xe8]
push eax
call fcn.004961b3
add esp, 4
call fcn.00413dd0
cmp byte [esp + 0x13], 0
je 0x4100f4
push ebx
call fcn.004961b3
mov ebx, 0x10
add esp, 4
cmp dword [esp + 0xc4], ebx
jb 0x4100b7
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.004961b3
add esp, 4
mov edi, 0xf
mov byte [esp + 0x780], 0
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], esi
mov byte [esp + 0xb0], 0
cmp dword [esp + 0xe0], ebx
jb 0x410265
mov edx, dword [esp + 0xcc]
push edx
jmp 0x41025d
mov eax, dword [ebx]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x104]
push ecx
mov ecx, ebx
call edx
cmp dword [eax + 0x10], esi
setne byte [esp + 0x13]
cmp dword [esp + 0x118], edi
jb 0x410126
mov eax, dword [esp + 0x104]
push eax
call fcn.004961b3
add esp, 4
cmp byte [esp + 0x13], 0
je 0x410198
mov edx, dword [ebx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x120]
push eax
mov ecx, ebx
call edx
mov esi, dword [esp + 0xa4]
mov edi, eax
mov byte [esp + 0x780], 0x11
call fcn.00413200
mov byte [esp + 0x780], 6
cmp dword [esp + 0x134], 8
jb 0x410176
mov eax, dword [esp + 0x120]
push eax
call fcn.004961b3
add esp, 4
xor ecx, ecx
mov dword [esp + 0x134], 7
mov dword [esp + 0x130], 0
mov word [esp + 0x120], cx
xor esi, esi
mov edx, dword [ebx]
mov edi, dword [esp + 0x9c]
mov eax, dword [edx + 0xc]
push edi
mov ecx, ebx
call eax
test al, al
jne 0x41020b
call fcn.00413dd0
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
cmp ecx, eax
jae 0x4101f2
mov ecx, dword [edi]
lea edx, [esp + 0x14]
cmp ecx, edx
ja 0x4101f2
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [edi + 8]
jne 0x4101da
mov eax, edi
call fcn.00403dc0
mov eax, dword [edi]
lea esi, [eax + esi*4]
mov eax, dword [edi + 4]
test eax, eax
je 0x4101ea
mov ecx, dword [esi]
mov dword [eax], ecx
add dword [edi + 4], 4
xor esi, esi
jmp 0x41020b
cmp eax, dword [edi + 8]
jne 0x4101fe
mov eax, edi
call fcn.00403dc0
mov eax, dword [edi + 4]
cmp eax, esi
je 0x410207
mov dword [eax], ebx
add dword [edi + 4], 4
mov ebx, 0x10
cmp dword [esp + 0xc4], ebx
jb 0x410229
mov edx, dword [esp + 0xb0]
push edx
call fcn.004961b3
add esp, 4
mov byte [esp + 0x780], 0
mov edi, 0xf
mov byte [esp + 0xb0], 0
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], edi
cmp dword [esp + 0xe0], ebx
jb 0x410265
mov eax, dword [esp + 0xcc]
push eax
call fcn.004961b3
add esp, 4
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], esi
mov byte [esp + 0xcc], 0
cmp dword [esp + 0x18], esi
jne 0x40f6a0
jmp 0x41028c
call fcn.00413dd0
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x4102aa
push 0
call fcn.004909a0
add esp, 4
xor eax, eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x780], 0xffffffff
test eax, eax
je 0x4102c3
push 0
call fcn.004909a0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x778]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x760]
xor ecx, esp
call fcn.00495b13
mov esp, ebp
pop ebp
ret 8