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

Disassembly:
push 0xffffffffffffffff
push 0x50a2a8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa0]
xor ebp, ebp
cmp dword [esi + 8], ebp
je 0x47cb32
mov edi, dword [esp + 0x9c]
push esi
push edi
call fcn.00477100
add esp, 8
cmp eax, 0xffffffff
jne 0x47ca08
mov eax, dword [esp + 0xa8]
cmp eax, ebp
je 0x47c9eb
push eax
push edi
call fcn.00476b70
add esp, 8
mov esi, eax
jmp 0x47c9ed
xor esi, esi
mov eax, dword [esp + 0xa4]
cmp eax, ebp
je 0x47ca01
push eax
call fcn.00476ae0
add esp, 4
mov eax, esi
jmp 0x47cf09
mov eax, dword [edi + 8]
add eax, 2
push eax
lea ecx, [esp + 0x68]
call fcn.00476970
mov ecx, dword [edi + 8]
add ecx, 2
mov dword [esp + 0x6c], ecx
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x98], ebp
call fcn.004767e0
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x98], 1
call fcn.004767e0
lea ecx, [esp + 0x50]
mov byte [esp + 0x94], 2
call fcn.00476930
lea ecx, [esp + 0x78]
mov byte [esp + 0x94], 3
call fcn.00476930
mov edx, dword [edi + 0x10]
xor eax, eax
cmp edx, dword [esi + 0x10]
lea ecx, [esp + 0x3c]
setne al
xor ebx, ebx
push ecx
mov byte [esp + 0x98], 4
mov dword [esp + 0x50], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], eax
call fcn.00476f60
cdq
mov ecx, 0x1c
idiv ecx
add esp, 4
cmp edx, 0x1b
jge 0x47cb3c
mov esi, 0x1b
sub esi, edx
lea edx, [esp + 0x28]
push edx
mov eax, edx
push esi
push eax
mov dword [esp + 0x24], esi
call fcn.00477490
add esp, 0xc
cmp eax, ebp
jne 0x47cadb
lea ecx, [esp + 0x3c]
push ecx
mov edx, ecx
push esi
push edx
call fcn.00477490
add esp, 0xc
cmp eax, ebp
je 0x47cb42
lea ecx, [esp + 0x78]
mov byte [esp + 0x94], 3
call fcn.00476a60
lea ecx, [esp + 0x50]
mov byte [esp + 0x94], 2
call fcn.00476a60
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 1
call fcn.00476a60
mov byte [esp + 0x94], bl
lea ecx, [esp + 0x28]
call fcn.00476a60
lea ecx, [esp + 0x64]
mov dword [esp + 0x94], 0xffffffff
call fcn.00476a60
mov eax, 0xfffffffd
jmp 0x47cf09
mov dword [esp + 0x18], ebp
jmp 0x47cb46
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
add esi, 0xffffffff
add edi, 0xffffffff
mov dword [esp + 0x1c], esi
sub esi, edi
lea eax, [esp + 0x3c]
push esi
push eax
mov dword [esp + 0x1c], edi
call fcn.00477230
add esp, 8
cmp eax, ebp
jne 0x47cbc7
mov ebp, dword [esp + 0x68]
jmp 0x47cb7a
mov ebx, dword [esp + 0x38]
cmp ebx, dword [esp + 0x4c]
je 0x47cb85
cmp ebx, 1
jmp 0x47cba7
cmp ebx, 1
lea ecx, [esp + 0x28]
jne 0x47cb96
push ecx
lea edx, [esp + 0x40]
push edx
jmp 0x47cb9c
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.00477100
add esp, 8
cmp eax, 0xffffffff
je 0x47cc07
add dword [ebp + esi*4], 1
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, edx
push ecx
call fcn.0047a600
add esp, 0xc
test eax, eax
je 0x47cb76
lea ecx, [esp + 0x78]
mov byte [esp + 0x94], 3
call fcn.00476a60
lea ecx, [esp + 0x50]
mov byte [esp + 0x94], 2
call fcn.00476a60
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 1
call fcn.00476a60
mov byte [esp + 0x94], 0
jmp 0x47cb15
lea edx, [esp + 0x3c]
push esi
push edx
call fcn.004777d0
mov ebx, dword [esp + 0x24]
lea eax, [edi + 1]
add esp, 8
cmp ebx, eax
jl 0x47ce39
cmp ebx, dword [esp + 0x30]
jg 0x47ce2b
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + edi*4]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ebx*4]
cmp eax, ecx
jne 0x47cc4e
mov esi, ebx
sub esi, edi
mov dword [ebp + esi*4 - 4], 0xfffffff
jmp 0x47cc95
mov edx, dword [edx + ebx*4 - 4]
xor esi, esi
shld esi, eax, 0x1c
xor edi, edi
push edi
push ecx
shl eax, 0x1c
or esi, edi
or eax, edx
push esi
push eax
call fcn.004f0320
test edx, edx
ja 0x47cc75
cmp eax, 0xfffffff
jbe 0x47cc82
mov eax, 0xfffffff
mov dword [esp + 0x20], 0
mov edi, dword [esp + 0x14]
mov esi, ebx
sub esi, dword [esp + 0x14]
and eax, 0xfffffff
mov dword [ebp + esi*4 - 4], eax
mov eax, dword [ebp + esi*4 - 4]
add eax, 1
and eax, 0xfffffff
mov dword [ebp + esi*4 - 4], eax
mov ecx, dword [ebp + esi*4 - 4]
mov edx, dword [esp + 0x54]
sub ecx, 1
and ecx, 0xfffffff
mov dword [ebp + esi*4 - 4], ecx
mov ecx, dword [esp + 0x5c]
test ecx, ecx
mov dword [esp + 0x60], 0
jle 0x47ccd4
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
lea eax, [edi - 1]
test eax, eax
jge 0x47ccdf
xor eax, eax
jmp 0x47cce7
mov eax, dword [esp + 0x40]
mov eax, dword [eax + edi*4 - 4]
mov ecx, dword [esp + 0x40]
mov dword [edx], eax
mov eax, dword [ecx + edi*4]
lea ecx, [esp + 0x50]
mov dword [edx + 4], eax
mov edx, dword [ebp + esi*4 - 4]
push ecx
push edx
mov eax, ecx
push eax
mov dword [esp + 0x64], 2
call fcn.004775b0
add esp, 0xc
test eax, eax
jne 0x47cbc7
mov edx, dword [esp + 0x2c]
lea eax, [ebx - 2]
test eax, eax
jge 0x47cd27
xor eax, eax
jmp 0x47cd2a
mov eax, dword [edx + eax*4]
mov ecx, dword [esp + 0x7c]
mov dword [ecx], eax
lea eax, [ebx - 1]
test eax, eax
jge 0x47cd3b
xor eax, eax
jmp 0x47cd3f
mov eax, dword [edx + ebx*4 - 4]
mov dword [ecx + 4], eax
mov edx, dword [edx + ebx*4]
lea eax, [esp + 0x78]
mov dword [ecx + 8], edx
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x88], 3
call fcn.00477100
add esp, 8
cmp eax, 1
je 0x47cca5
mov eax, dword [ebp + esi*4 - 4]
lea edx, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004775b0
add esp, 0xc
test eax, eax
jne 0x47cbc7
lea edi, [esi - 1]
lea edx, [esp + 0x50]
push edi
push edx
call fcn.00477230
add esp, 8
test eax, eax
jne 0x47cbc7
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54]
push ecx
mov edx, eax
push edx
call fcn.0047a600
add esp, 0xc
test eax, eax
jne 0x47cbc7
cmp dword [esp + 0x38], 1
jne 0x47ce27
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00476b70
add esp, 8
test eax, eax
jne 0x47cbc7
lea edx, [esp + 0x50]
push edi
push edx
call fcn.00477230
add esp, 8
test eax, eax
jne 0x47cbc7
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54]
push ecx
mov edx, eax
push edx
call fcn.004788a0
add esp, 0xc
test eax, eax
jne 0x47cbc7
mov eax, dword [ebp + esi*4 - 4]
sub eax, 1
and eax, 0xfffffff
mov dword [ebp + esi*4 - 4], eax
mov edi, dword [esp + 0x14]
sub ebx, 1
lea eax, [edi + 1]
cmp ebx, eax
jge 0x47cc24
cmp dword [esp + 0x30], 0
jne 0x47ce4a
mov dword [esp + 0x38], 0
jmp 0x47ce58
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x38], edx
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x47ce82
lea eax, [esp + 0x64]
push eax
call fcn.00476bf0
lea ecx, [esp + 0x68]
push esi
push ecx
call fcn.00476c30
mov edx, dword [esp + 0x30]
add esp, 0xc
mov dword [esi + 0x10], edx
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x47ceaf
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
mov edx, eax
push edx
call fcn.00478640
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00476c30
add esp, 0x18
lea ecx, [esp + 0x78]
mov byte [esp + 0x94], 3
call fcn.00476a60
lea ecx, [esp + 0x50]
mov byte [esp + 0x94], 2
call fcn.00476a60
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 1
call fcn.00476a60
lea ecx, [esp + 0x28]
mov byte [esp + 0x94], 0
call fcn.00476a60
lea ecx, [esp + 0x64]
mov dword [esp + 0x94], 0xffffffff
call fcn.00476a60
xor eax, eax
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret