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

Disassembly:
push 0xffffffffffffffff
push 0x503b50
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
xor edi, edi
mov eax, dword [edi*4 + 0x5389e8]
push eax
push esi
call fcn.004c8349
add esp, 8
cmp eax, esi
je 0x47fa37
inc edi
cmp edi, 2
jb 0x47f9c0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ebx, fcn.004c61e0
mov ebp, fcn.004c83aa
mov edi, fcn.004c6103
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edi
mov eax, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0
call fcn.0047f710
xor eax, eax
cmp dword [esp + 0x1c], eax
jg 0x47fa53
mov edx, dword [esp + 0x98]
mov eax, esi
call fcn.00438d30
jmp 0x47fd18
cmp dword [edi*4 + 0x5389e8], ebx
je 0x47f9db
mov edx, dword [esp + 0x98]
mov eax, esi
call fcn.00438d30
jmp 0x47fd33
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], edi
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x90], 1
call fcn.0047f710
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], edi
mov ecx, dword [esp + 0x9c]
push ecx
sub esp, 0x1c
lea edi, [esp + 0x8c]
mov eax, esp
mov byte [esp + 0xb0], 3
mov dword [esp + 0x34], esp
call fcn.00480040
lea ecx, [esp + 0x54]
call fcn.0047f7a0
add esp, 0x20
push esi
sub esp, 0x1c
lea edi, [esp + 0x38]
mov eax, esp
mov dword [esp + 0x34], esp
call fcn.00480040
lea ecx, [esp + 0x70]
call fcn.0047f7a0
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x70]
add edi, 0xfffffffe
add esp, 0x20
xor eax, eax
test edi, edi
jl 0x47fb32
cmp dword [ecx + 4], eax
jne 0x47fb34
mov eax, 1
xor edi, edi
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
jge 0x47fc72
mov ebx, edi
imul ebx, ebx, 0x124
imul eax, eax, 0x124
lea ebp, [eax + ecx + 0xc]
cmp byte [ebp + 0x110], 0
mov eax, ebp
jne 0x47fb62
mov eax, dword [ebp - 4]
mov ecx, 0x5192cc
add eax, 4
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47fb96
test dx, dx
je 0x47fb92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47fb96
add eax, 4
add ecx, 4
test dx, dx
jne 0x47fb70
xor eax, eax
jmp 0x47fb9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47fc59
lea esi, [ebp - 0xc]
mov ecx, 0x5192d0
mov eax, esi
call fcn.00438e10
test al, al
je 0x47fc24
dec edi
sub ebx, 0x124
test edi, edi
jge 0x47fc59
lea edi, [esp + 0x50]
mov byte [esp + 0x90], 2
call fcn.00413440
lea edi, [esp + 0x34]
mov byte [esp + 0x90], 1
call fcn.00413440
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x47fc02
push eax
call dword [esp + 0x88]
add esp, 4
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47fc1d
push eax
call dword [esp + 0x34]
add esp, 4
xor al, al
jmp 0x47fd35
inc edi
add ebx, 0x124
cmp edi, dword [esp + 0x38]
jl 0x47fc3d
push esi
lea eax, [esp + 0x38]
call fcn.004133d0
jmp 0x47fc59
mov edx, dword [esp + 0x34]
add edx, ebx
cmp byte [ebp + 0x110], 0
mov eax, ebp
jne 0x47fc51
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00438d30
mov eax, dword [esp + 0x14]
inc eax
add ebp, 0x124
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
jl 0x47fb54
mov ebx, dword [esp + 0x98]
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.0047f920
add esp, 8
xor esi, esi
lea esp, [esp]
mov ecx, dword [esi*4 + 0x5389e8]
mov edi, dword [esp + 0x9c]
push ecx
push edi
call fcn.004c8349
add esp, 8
cmp eax, edi
je 0x47fcb4
inc esi
cmp esi, 2
jb 0x47fc90
jmp 0x47fcdb
mov esi, dword [esi*4 + 0x5389e8]
test esi, esi
je 0x47fcdb
mov ecx, esi
lea eax, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x47fcc4
sub ecx, eax
sar ecx, 1
push ebx
mov eax, esi
call fcn.00438fd0
lea edi, [esp + 0x50]
mov byte [esp + 0x90], 2
call fcn.00413440
lea edi, [esp + 0x34]
mov byte [esp + 0x90], 1
call fcn.00413440
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x47fd18
push eax
call dword [esp + 0x88]
add esp, 4
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47fd33
push eax
call dword [esp + 0x34]
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret