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

Disassembly:
mov ecx, dword [0x58223c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x44]
cmp eax, dword [ecx + 8]
jbe 0x49ecf7
sub esp, 0xc4
mov eax, 0
mov dword [esp + 0xc0], eax
mov byte [esp + 0x27], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 0x50]
test ecx, ecx
jne 0x49ea8e
mov byte [esp + 0x26], 0
lea ecx, [0x49ee80]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
lea ecx, [esp + 0x26]
mov dword [esp + 0xa0], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0xc0], ecx
mov byte [esp + 0x27], 1
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x49e323
mov ecx, dword [eax + 0x60]
test ecx, ecx
jne 0x49e323
mov ecx, dword [eax + 0xac]
test ecx, ecx
jne 0x49e323
lea eax, [0x4b0c00]
mov dword [esp], eax
call fcn.0040afe0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x10
lea ecx, [0x4c0d94]
mov dword [eax], ecx
lea ecx, [0x4e351c]
mov edx, dword [esp + 0xc8]
mov dword [edx + 0x60], ecx
mov ebx, dword [0x582328]
test ebx, ebx
je 0x49e31e
call fcn.0046d530
mov dword [edi], eax
mov ebx, dword [edx + 0x64]
mov dword [edi + 4], ebx
mov dword [edx + 0x64], eax
jmp 0x49e32b
lea ecx, [0x4e351c]
mov edx, eax
mov eax, dword [edx + 0x60]
test eax, eax
jne 0x49e33c
mov ebx, dword [edx + 0xac]
test ebx, ebx
je 0x49e399
mov ecx, dword [edx + 0xac]
test ecx, ecx
je 0x49e371
mov eax, dword [edx + 0xb0]
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], eax
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
call eax
add esp, 0xc4
ret
mov ecx, dword [edx + 0x64]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
call eax
add esp, 0xc4
ret
mov eax, dword [edx + 4]
cmp dword [edx + 0xb8], eax
jne 0x49e3e1
mov ecx, dword [edx]
mov ebx, dword [edx + 0xb4]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.004021c0
movzx eax, byte [esp + 0xc]
test al, al
je 0x49e3da
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 0xbc]
mov edx, dword [eax + 0xc0]
jmp 0x49e41b
mov edx, dword [esp + 0xc8]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov ebx, dword [edx + 0x20]
mov ebp, dword [edx + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.004a0580
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x49ea65
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc8]
mov ebx, dword [eax + 0x68]
test ebx, ebx
je 0x49e475
mov ebx, dword [eax + 0x58]
test ebx, ebx
jne 0x49e475
lea eax, [0x4b0c00]
mov dword [esp], eax
call fcn.0040afe0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x47
lea ecx, [0x4c8b9a]
mov dword [eax], ecx
lea ecx, [0x4e351c]
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], eax
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
call eax
add esp, 0xc4
ret
mov dword [esp + 0x2c], edx
mov dword [esp + 0x58], ecx
mov ebx, dword [eax + 0x58]
test ebx, ebx
je 0x49e4af
mov ecx, dword [eax + 0x5c]
mov edx, dword [ebx + 0x10]
mov dword [esp], ecx
call edx
mov dword [esp], 0
call fcn.00405cb0
movzx eax, byte [esp + 8]
test al, al
jne 0x49ea23
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 0x44]
mov dword [esp + 0x3c], ecx
lea edx, [0x4bd160]
mov dword [esp], edx
mov dword [esp + 4], 0
lea ebx, [ecx + 3]
mov dword [esp + 0x34], ebx
mov dword [esp + 8], ebx
call fcn.00468700
mov eax, dword [esp + 0xc]
mov dword [esp + 0xbc], eax
mov ecx, dword [esp + 0xc8]
mov dword [esp], ecx
call fcn.0049d740
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x49e9fa
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x3c]
cmp eax, 0xfffffffd
je 0x49e51b
mov eax, dword [esp + 0xbc]
mov ebx, dword [esp + 0x34]
jmp 0x49e554
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
lea eax, [0x4bd160]
mov dword [esp + 0x10], eax
call fcn.004687b0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x34], ebx
mov ecx, dword [0x582328]
test ecx, ecx
jne 0x49e568
mov ecx, dword [esp + 0x48]
jmp 0x49e578
call fcn.0046d530
mov ecx, dword [esp + 0x48]
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [esp + 0x68], eax
mov dword [eax], ecx
mov ecx, dword [esp + 0xc8]
mov edx, dword [ecx + 0x30]
mov ebx, dword [ecx + 0x34]
nop
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.0049dda0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x49e9d1
mov eax, dword [esp + 0x34]
cmp eax, 2
jb 0x49e5bb
mov edx, dword [esp + 0x68]
jmp 0x49e5f9
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x4bd160]
mov dword [esp + 0x10], eax
call fcn.004687b0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
mov edx, eax
mov eax, ebx
mov dword [esp + 0x34], eax
mov ebx, dword [0x582328]
test ebx, ebx
je 0x49e614
call fcn.0046d530
mov dword [edi], ecx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov dword [esp + 0x68], edx
mov dword [edx + 4], ecx
mov eax, dword [esp + 0xc8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0049dce0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x49e9a8
mov eax, dword [esp + 0x34]
cmp eax, 3
jb 0x49e64d
mov edx, dword [esp + 0x68]
jmp 0x49e687
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov dword [esp + 4], 3
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x4bd160]
mov dword [esp + 0x10], eax
call fcn.004687b0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [0x582328]
test ebx, ebx
je 0x49e69e
call fcn.0046d530
mov dword [edi], ecx
mov ebx, dword [edx + 8]
mov dword [edi + 4], ebx
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0xc8]
mov ebx, dword [ecx + 0x44]
lea ebp, [ebx + 3]
mov esi, dword [ecx + 0x40]
cmp eax, ebp
jae 0x49e6f5
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xb8], esi
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
lea eax, [0x4bd160]
mov dword [esp + 0x10], eax
call fcn.004687b0
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0xb8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x68], edx
lea ecx, [0x4bd160]
mov dword [esp], ecx
lea ecx, [ebp - 3]
lea edi, [eax - 3]
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, 0xc
add edi, edx
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.00466860
mov eax, dword [esp + 0xc8]
mov dword [esp], eax
call fcn.0049fac0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
test eax, eax
jne 0x49e97f
mov ebp, dword [esp + 0xc8]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x49e770
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
jmp 0x49e7ab
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov eax, dword [ebp]
mov esi, dword [ebp + 4]
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], eax
mov esi, 1
mov edi, 1
lea eax, [esp + 0x90]
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x64], ecx
lea edi, [esp + 0x6c]
xor eax, eax
call fcn.0046d707
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x74], ecx
mov ecx, dword [ebp + 0x4c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x14], ecx
call fcn.00493cd0
mov ecx, dword [0x582328]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
test ecx, ecx
jne 0x49e85a
mov eax, dword [esp + 0xc8]
jmp 0x49e86e
call fcn.0046d530
mov dword [edi], ebx
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 0x50]
mov dword [edi + 4], ecx
mov dword [eax + 0x50], ebx
test edx, edx
jne 0x49e95a
mov byte [esp + 0x26], 1
mov ecx, dword [eax + 0x90]
test ecx, ecx
je 0x49eaca
lea eax, [0x4ac480]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00404780
mov eax, dword [0x582328]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x49e8b9
mov eax, dword [esp + 0xc8]
jmp 0x49e8d0
call fcn.0046d530
mov dword [edi], ecx
mov eax, dword [esp + 0xc8]
mov edx, dword [eax + 0x98]
mov dword [edi + 4], edx
mov dword [esp + 0x5c], ecx
mov dword [eax + 0x98], ecx
lea edx, [0x4ac500]
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.00404780
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0xc8]
mov edx, dword [ecx + 0x90]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xa4], edx
mov dword [esp], eax
lea edx, [esp + 0xa4]
mov dword [esp + 4], edx
call fcn.00404950
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 0x8c]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 0x90]
mov dword [esp + 0x3c], edx
xor ebx, ebx
jmp 0x49ec03
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], ebp
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
call eax
add esp, 0xc4
ret
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
call eax
add esp, 0xc4
ret
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
call eax
add esp, 0xc4
ret
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
call eax
add esp, 0xc4
ret
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
call eax
add esp, 0xc4
ret
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 0x58]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ecx + 0x14]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
call eax
add esp, 0xc4
ret
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
call eax
add esp, 0xc4
ret
lea eax, [0x4b0c00]
mov dword [esp], eax
call fcn.0040afe0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x15
lea ecx, [0x4c2276]
mov dword [eax], ecx
lea ecx, [0x4e351c]
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], eax
add esp, 0xc4
ret
mov ecx, dword [eax + 0x68]
test ecx, ecx
jne 0x49eaeb
mov ecx, dword [eax + 0x6c]
mov ebx, dword [eax + 0x70]
test ebx, ebx
setne bl
test ecx, ecx
setne cl
or ebx, ecx
test bl, bl
je 0x49ebaf
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x49ebaf
mov edx, dword [eax + 0x5c]
mov ecx, dword [ecx + 0x10]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
test eax, eax
je 0x49ebaf
lea eax, [0x4ac4c0]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00404780
mov eax, dword [0x582328]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x49eb3a
mov eax, dword [esp + 0xc8]
jmp 0x49eb51
call fcn.0046d530
mov dword [edi], ecx
mov eax, dword [esp + 0xc8]
mov edx, dword [eax + 0x9c]
mov dword [edi + 4], edx
mov dword [esp + 0x54], ecx
mov dword [eax + 0x9c], ecx
lea edx, [0x4b1ea0]
mov dword [esp], edx
call fcn.0040afe0
mov eax, dword [esp + 4]
lea ecx, [0x49ed10]
mov dword [eax], ecx
mov ecx, dword [0x582328]
test ecx, ecx
jne 0x49eb8c
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0x54]
jmp 0x49eba1
call fcn.0046d530
mov ecx, dword [esp + 0xc8]
mov dword [edi], ecx
mov edx, dword [esp + 0x54]
mov dword [edi + 4], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [esp], eax
call fcn.00440550
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
call eax
add esp, 0xc4
ret
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [esp], eax
call fcn.00440550
mov eax, dword [esp + 0x38]
lea ebx, [eax + 1]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x3c]
cmp ebx, edx
jge 0x49ecb1
mov dword [esp + 0x38], ebx
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x60], eax
lea edx, [0x4b1de0]
mov dword [esp], edx
call fcn.0040afe0
mov eax, dword [esp + 4]
lea ecx, [0x49eda0]
mov dword [eax], ecx
mov edx, dword [0x582328]
test edx, edx
jne 0x49ec44
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x5c]
jmp 0x49ec56
call fcn.0046d530
mov edx, dword [esp + 0x50]
mov dword [edi], edx
mov ebx, dword [esp + 0x5c]
mov dword [edi + 4], ebx
mov dword [esp + 0xb0], eax
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
lea ecx, [0x4b1f00]
mov dword [esp], ecx
call fcn.0040afe0
mov eax, dword [esp + 4]
lea ecx, [0x49ed60]
mov dword [eax], ecx
mov edx, dword [0x582328]
test edx, edx
jne 0x49ec97
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0x60]
jmp 0x49ebdc
call fcn.0046d530
mov edx, dword [esp + 0xb0]
mov dword [edi], edx
mov ebx, dword [esp + 0x60]
mov dword [edi + 4], ebx
jmp 0x49ebdc
mov dword [eax + 0x90], 0
mov dword [eax + 0x94], 0
mov ecx, dword [0x582328]
test ecx, ecx
je 0x49ecdc
mov ecx, dword [eax + 0x8c]
call fcn.0046d520
mov dword [edi], ecx
mov dword [eax + 0x8c], 0
jmp 0x49eaca
call fcn.0046c120
jmp fcn.0049e230