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

Disassembly:
sub esp, 0x144
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x20], edi
call fcn.0049c18c
xor eax, eax
xor ebx, ebx
push 7
pop ecx
mov word [esp + 0x3c], ax
mov word [esp + 0x54], ax
lea eax, [esp + 0x24]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x68], ecx
mov ecx, dword [edi + 0xa4]
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.004e41fe
push eax
lea ecx, [esp + 0x13c]
call fcn.0043a3e7
lea ecx, [esp + 0x24]
call fcn.0043c274
mov ecx, dword [edi + 0x9c]
lea eax, [esp + 0x24]
push eax
call fcn.004e41fe
push eax
lea ecx, [esp + 0x10c]
call fcn.0043a3e7
lea ecx, [esp + 0x24]
call fcn.0043c274
mov ecx, dword [edi + 0x88]
lea eax, [esp + 0x24]
push eax
call fcn.004e41fe
push eax
lea ecx, [esp + 0x94]
call fcn.0043a3e7
lea ecx, [esp + 0x24]
call fcn.0043c274
mov ecx, dword [edi + 0xa0]
lea eax, [esp + 0x24]
push eax
call fcn.004e41fe
push eax
lea ecx, [esp + 0x124]
call fcn.0043a3e7
lea ecx, [esp + 0x24]
call fcn.0043c274
mov ecx, dword [edi + 0x8c]
lea eax, [esp + 0x24]
push eax
call fcn.004e41fe
push eax
lea ecx, [esp + 0xac]
call fcn.0043a3e7
lea ecx, [esp + 0x24]
call fcn.0043c274
mov ecx, dword [edi + 0x90]
lea eax, [esp + 0x24]
push eax
call fcn.004e41fe
push eax
lea ecx, [esp + 0xc4]
call fcn.0043a3e7
lea ecx, [esp + 0x24]
call fcn.0043c274
mov ecx, dword [edi + 0x94]
lea eax, [esp + 0x24]
push eax
call fcn.004e41fe
push eax
lea ecx, [esp + 0xdc]
call fcn.0043a3e7
lea ecx, [esp + 0x24]
call fcn.0043c274
mov ecx, dword [edi + 0x98]
lea eax, [esp + 0x24]
push eax
call fcn.004e41fe
push eax
lea ecx, [esp + 0xf4]
call fcn.0043a3e7
lea ecx, [esp + 0x24]
call fcn.0043c274
push 0x55a96c
lea ecx, [esp + 0x7c]
call fcn.0043c2b9
mov ecx, dword [edi + 0x84]
lea eax, [esp + 0x24]
push eax
call fcn.004e41fe
push eax
lea ecx, [esp + 0x40]
call fcn.0043a3e7
lea ecx, [esp + 0x24]
call fcn.0043c274
mov eax, dword [0x5f1fdc]
mov ebp, 0xd8
mov dword [esp + 0x18], 0x3c
test eax, eax
jne 0x49ee91
mov eax, dword [edi + 0xd4]
push 0x3c
pop esi
mov ecx, dword [eax + 0x2800]
mov eax, dword [eax + 0x2804]
sub eax, ecx
mov dword [esp + 0x18], ecx
cdq
idiv esi
mov ebp, eax
test ebp, ebp
jne 0x49ed5c
push 0x54e054
lea ecx, [esp + 0x58]
call fcn.0043c2b9
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x70]
call fcn.0049fbc6
mov ecx, dword [edi + 0xd4]
lea eax, [esp + 0x3c]
mov ebp, 0x2800
push eax
add ecx, ebp
call fcn.0049fa31
mov ecx, dword [edi + 0xd4]
mov eax, dword [ecx + ebp + 4]
sub eax, dword [ecx + ebp]
mov ebp, 0xd8
cdq
idiv esi
dec eax
mov word [0x5f1fd8], ax
mov eax, dword [edi + 0xd4]
mov ecx, dword [eax + 0x2804]
mov eax, dword [ecx - 8]
sub eax, dword [ecx - 0xc]
cdq
idiv ebp
dec eax
mov word [0x5f1fd4], ax
jmp 0x49f343
mov eax, ebx
mov dl, bl
mov dword [esp + 0x1c], eax
mov esi, ebx
mov byte [esp + 0x17], dl
test ebp, ebp
je 0x49edce
mov edi, ecx
imul eax, esi, 0x3c
lea ecx, [esp + 0x3c]
add eax, edi
cmp dword [esp + 0x50], 8
mov ebx, eax
cmovae ecx, dword [esp + 0x3c]
cmp dword [eax + 0x14], 8
jb 0x49ed8d
mov ebx, dword [eax]
mov edi, dword [esp + 0x4c]
cmp dword [eax + 0x10], edi
mov edi, dword [esp + 0x18]
jne 0x49edbf
push dword [eax + 0x10]
push ecx
push ebx
call fcn.0043461b
add esp, 0xc
test eax, eax
jne 0x49edbb
mov eax, esi
mov dl, 1
mov byte [esp + 0x17], dl
mov esi, ebp
mov dword [esp + 0x1c], eax
jmp 0x49edc3
mov dl, byte [esp + 0x17]
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, ebp
jb 0x49ed70
mov edi, dword [esp + 0x20]
xor ebx, ebx
test dl, dl
je 0x49ee44
movzx eax, ax
lea ecx, [esp + 0x78]
mov word [0x5f1fd8], ax
cwde
push ecx
imul ecx, eax, 0x3c
mov eax, dword [edi + 0xd4]
mov eax, dword [eax + 0x2800]
add eax, 0x30
add ecx, eax
call fcn.0049fbc6
movsx eax, word [0x5f1fd8]
mov ebp, 0xd8
imul esi, eax, 0x3c
mov eax, dword [edi + 0xd4]
push 0x54e054
mov ecx, dword [eax + 0x2800]
mov eax, dword [ecx + esi + 0x34]
sub eax, dword [ecx + esi + 0x30]
lea ecx, [esi + 0x18]
cdq
idiv ebp
dec eax
mov word [0x5f1fd4], ax
mov eax, dword [edi + 0xd4]
mov eax, dword [eax + 0x2800]
add ecx, eax
call fcn.0043c2b9
jmp 0x49ee7b
push 0x54e054
lea ecx, [esp + 0x58]
call fcn.0043c2b9
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x70]
call fcn.0049fbc6
mov ecx, dword [edi + 0xd4]
lea eax, [esp + 0x3c]
push eax
add ecx, 0x2800
call fcn.0049fa31
mov ebp, 0xd8
mov ecx, dword [edi + 0xd4]
mov byte [0x5f1fbf], bl
call fcn.0049da7f
jmp 0x49f343
cmp eax, 1
jne 0x49f298
cmp byte [0x5f1fbe], bl
je 0x49eec7
lea eax, [esp + 0x3c]
push eax
movsx eax, word [0x5f1fd8]
imul ecx, eax, 0x3c
mov eax, dword [edi + 0xd4]
add ecx, dword [eax + 0x2800]
call fcn.0043a3bc
jmp 0x49f370
movsx eax, word [0x5f1fd8]
mov ecx, dword [edi + 0xd4]
imul esi, eax, 0x3c
lea eax, [esp + 0x3c]
mov ebp, dword [ecx + 0x2800]
add esi, ebp
cmp dword [esp + 0x50], 8
mov edx, esi
cmovae eax, dword [esp + 0x3c]
cmp dword [esi + 0x14], 8
jb 0x49eef7
mov edx, dword [esi]
mov edi, dword [esp + 0x4c]
cmp dword [esi + 0x10], edi
mov edi, dword [esp + 0x20]
jne 0x49f103
push dword [esi + 0x10]
push eax
push edx
call fcn.0043461b
add esp, 0xc
test eax, eax
jne 0x49f0fd
lea eax, [esp + 0x90]
push eax
movsx eax, word [0x5f1fd4]
imul ecx, eax, 0xd8
add ecx, 0x18
add ecx, dword [esi + 0x30]
call fcn.0043a3bc
lea eax, [esp + 0xa8]
push eax
movsx eax, word [0x5f1fd8]
imul esi, eax, 0x3c
mov eax, dword [edi + 0xd4]
mov edx, dword [eax + 0x2800]
movsx eax, word [0x5f1fd4]
imul ecx, eax, 0xd8
add ecx, 0x30
add ecx, dword [esi + edx + 0x30]
call fcn.0043a3bc
lea eax, [esp + 0xc0]
push eax
movsx eax, word [0x5f1fd8]
imul esi, eax, 0x3c
mov eax, dword [edi + 0xd4]
mov edx, dword [eax + 0x2800]
movsx eax, word [0x5f1fd4]
imul ecx, eax, 0xd8
add ecx, 0x48
add ecx, dword [esi + edx + 0x30]
call fcn.0043a3bc
lea eax, [esp + 0xd8]
push eax
movsx eax, word [0x5f1fd8]
imul esi, eax, 0x3c
mov eax, dword [edi + 0xd4]
mov edx, dword [eax + 0x2800]
movsx eax, word [0x5f1fd4]
imul ecx, eax, 0xd8
add ecx, 0x60
add ecx, dword [esi + edx + 0x30]
call fcn.0043a3bc
lea eax, [esp + 0xf0]
push eax
movsx eax, word [0x5f1fd8]
imul esi, eax, 0x3c
mov eax, dword [edi + 0xd4]
mov edx, dword [eax + 0x2800]
movsx eax, word [0x5f1fd4]
imul ecx, eax, 0xd8
add ecx, 0x78
add ecx, dword [esi + edx + 0x30]
call fcn.0043a3bc
lea eax, [esp + 0x108]
push eax
movsx eax, word [0x5f1fd8]
imul esi, eax, 0x3c
mov eax, dword [edi + 0xd4]
mov edx, dword [eax + 0x2800]
movsx eax, word [0x5f1fd4]
imul ecx, eax, 0xd8
add ecx, 0x90
add ecx, dword [esi + edx + 0x30]
call fcn.0043a3bc
lea eax, [esp + 0x120]
push eax
movsx eax, word [0x5f1fd8]
imul esi, eax, 0x3c
mov eax, dword [edi + 0xd4]
mov edx, dword [eax + 0x2800]
movsx eax, word [0x5f1fd4]
imul ecx, eax, 0xd8
add ecx, 0xa8
add ecx, dword [esi + edx + 0x30]
call fcn.0043a3bc
lea eax, [esp + 0x138]
push eax
movsx eax, word [0x5f1fd8]
imul esi, eax, 0x3c
mov eax, dword [edi + 0xd4]
mov edx, dword [eax + 0x2800]
movsx eax, word [0x5f1fd4]
imul ecx, eax, 0xd8
add ecx, 0xc0
add ecx, dword [esi + edx + 0x30]
call fcn.0043a3bc
lea eax, [esp + 0x78]
push eax
movsx eax, word [0x5f1fd8]
imul esi, eax, 0x3c
mov eax, dword [edi + 0xd4]
mov edx, dword [eax + 0x2800]
movsx eax, word [0x5f1fd4]
imul ecx, eax, 0xd8
add ecx, dword [esi + edx + 0x30]
call fcn.0043a3bc
jmp 0x49f28e
mov ecx, dword [edi + 0xd4]
mov eax, dword [ecx + 0x2804]
mov esi, ebx
sub eax, ebp
mov byte [esp + 0x17], bl
cdq
idiv dword [esp + 0x18]
test eax, eax
je 0x49f179
mov eax, dword [ecx + 0x2804]
sub eax, ebp
push 0x3c
cdq
pop ecx
idiv ecx
mov dword [esp + 0x18], eax
imul ecx, esi, 0x3c
lea edx, [esp + 0x3c]
add ecx, ebp
cmp dword [esp + 0x50], 8
mov eax, ecx
cmovae edx, dword [esp + 0x3c]
cmp dword [ecx + 0x14], 8
jb 0x49f149
mov eax, dword [ecx]
mov edi, dword [esp + 0x4c]
cmp dword [ecx + 0x10], edi
mov edi, dword [esp + 0x18]
jne 0x49f170
push dword [ecx + 0x10]
push edx
push eax
call fcn.0043461b
add esp, 0xc
test eax, eax
jne 0x49f170
mov ebx, esi
mov byte [esp + 0x17], 1
mov esi, edi
inc esi
cmp esi, edi
jb 0x49f12c
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x17], 0
je 0x49f227
lea eax, [esp + 0x78]
imul ecx, ebx, 0x3c
push eax
mov eax, dword [edi + 0xd4]
mov eax, dword [eax + 0x2800]
add eax, 0x30
add ecx, eax
call fcn.0049fbc6
movsx eax, word [0x5f1fd8]
imul ecx, eax, 0x3c
mov eax, dword [edi + 0xd4]
mov eax, dword [eax + 0x2800]
add ecx, 0x30
add ecx, eax
movsx eax, word [0x5f1fd4]
imul eax, eax, 0xd8
add eax, dword [ecx]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0049fb74
movzx eax, bx
mov ebp, 0xd8
mov word [0x5f1fd8], ax
cwde
imul esi, eax, 0x3c
mov eax, dword [edi + 0xd4]
push 0x54e054
mov ecx, dword [eax + 0x2800]
mov eax, dword [ecx + esi + 0x34]
sub eax, dword [ecx + esi + 0x30]
cdq
idiv ebp
dec eax
mov word [0x5f1fd4], ax
mov eax, dword [edi + 0xd4]
mov ecx, dword [eax + 0x2800]
add ecx, 0x18
add ecx, esi
call fcn.0043c2b9
jmp 0x49f343
push 0x54e054
lea ecx, [esp + 0x58]
call fcn.0043c2b9
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x70]
call fcn.0049fbc6
mov ecx, dword [edi + 0xd4]
lea eax, [esp + 0x3c]
push eax
add ecx, 0x2800
call fcn.0049fa31
movsx eax, word [0x5f1fd8]
imul ecx, eax, 0x3c
mov eax, dword [edi + 0xd4]
mov eax, dword [eax + 0x2800]
add ecx, 0x30
add ecx, eax
movsx eax, word [0x5f1fd4]
imul eax, eax, 0xd8
add eax, dword [ecx]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0049fb74
mov ebp, 0xd8
jmp 0x49f343
cmp eax, 2
jne 0x49f343
movsx eax, word [0x5f1fd8]
mov ebx, dword [edi + 0xd4]
imul esi, eax, 0x3c
mov ecx, dword [ebx + 0x2800]
mov eax, dword [ecx + esi + 0x34]
sub eax, dword [ecx + esi + 0x30]
cdq
idiv ebp
test eax, eax
jne 0x49f2d4
inc eax
mov byte [0x5f1fbe], al
mov ebx, dword [edi + 0xd4]
jmp 0x49f2d9
mov al, byte [0x5f1fbe]
test al, al
je 0x49f320
mov eax, dword [ebx + 0x2800]
mov edx, dword [ebx + 0x2804]
add eax, esi
push eax
lea ecx, [eax + 0x3c]
call fcn.0049fec9
mov esi, dword [ebx + 0x2804]
pop ecx
push 0x3c
pop eax
sub esi, eax
lea ecx, [esi + 0x30]
call fcn.0049fd7f
lea ecx, [esi + 0x18]
call fcn.0043c274
mov ecx, esi
call fcn.0043c274
add dword [ebx + 0x2804], 0xffffffc4
jmp 0x49f343
movsx eax, word [0x5f1fd4]
lea ecx, [esi + 0x30]
add ecx, dword [ebx + 0x2800]
imul eax, eax, 0xd8
add eax, dword [ecx]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0049fb74
mov ecx, dword [edi + 0xd4]
push 0x3c
mov eax, dword [ecx + 0x2804]
sub eax, dword [ecx + 0x2800]
cdq
pop ecx
idiv ecx
or edx, 0xffffffff
test eax, eax
jne 0x49f3a1
mov word [0x5f1fd8], dx
mov word [0x5f1fd4], dx
lea ecx, [esp + 0x6c]
call fcn.0049fd7f
lea ecx, [esp + 0x54]
call fcn.0043c274
lea ecx, [esp + 0x3c]
call fcn.0043c274
lea ecx, [esp + 0x78]
call fcn.0049c212
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 8
movzx eax, ax
mov ecx, eax
dec eax
movzx eax, ax
mov word [0x5f1fd8], ax
test ax, ax
js 0x49f369
mov esi, dword [edi + 0xd4]
movsx eax, cx
imul edx, eax, 0x3c
mov ecx, dword [esi + 0x2800]
mov eax, dword [edx + ecx - 8]
sub eax, dword [edx + ecx - 0xc]
cdq
idiv ebp
test eax, eax
jne 0x49f3db
or eax, 0xffffffff
jmp 0x49f3ee
mov ecx, dword [esi + 0x2804]
mov eax, dword [ecx - 8]
sub eax, dword [ecx - 0xc]
cdq
idiv ebp
dec eax
movzx eax, ax
mov word [0x5f1fd4], ax
jmp 0x49f370