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

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ecx + 0xf4]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
mov dword [esp + 8], eax
test byte [eax + 0x4c], 1
je 0x47cc71
xor eax, eax
add esp, 0x60
ret
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
lea eax, [eax + eax*8]
shl eax, 3
mov ebp, dword [ebx + 0x20]
mov dword [esp + 0x20], eax
add eax, 8
add eax, ebp
mov dword [esp + 0x14], ebp
cmp dword [ebx + 0x44], 0
mov dword [esp + 0xc], eax
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x14]
jne 0x47d1c1
cmp dword [ecx + 0x44], 0
jne 0x47d1c1
mov eax, dword [ecx + 0x3c]
push edi
mov edi, dword [ecx + 0x20]
test eax, eax
je 0x47ccce
cmp dword [ebx + 0x3c], 0
jne 0x47ccdb
test eax, eax
je 0x47ccce
cmp dword [eax + 0x10], 0
jne 0x47ccdb
test dword [ebx + 4], 0x100
je 0x47cce4
test eax, eax
je 0x47cce4
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
push esi
mov esi, dword [edi]
test esi, esi
je 0x47cd32
test byte [ecx + 4], 1
jne 0x47cd32
mov edx, dword [esp + 0x80]
test eax, eax
je 0x47cd06
cmp dword [ebp], 1
jg 0x47cd32
test edx, edx
jne 0x47cd32
mov ebp, dword [ebx + 0x30]
test ebp, ebp
je 0x47cd13
cmp dword [ecx + 0x30], 0
jne 0x47cd32
test edx, edx
je 0x47cd1d
cmp dword [ecx + 0x30], 0
jne 0x47cd32
test eax, eax
je 0x47cd3c
cmp dword [ebx + 0x24], 0
jne 0x47cd32
test eax, eax
je 0x47cd3c
mov eax, dword [ebx + 4]
test al, 1
je 0x47cd3f
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov eax, dword [ebx + 4]
test dword [ecx + 4], 0x2000
jne 0x47cd32
mov ebp, dword [esp + 0x14]
test byte [ebp + 0x24], 0x20
mov ebp, dword [ebx + 0x30]
je 0x47cd75
mov dword [esp + 0x20], 1
cmp esi, 1
jg 0x47cd32
test edx, edx
jne 0x47cd32
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x38], edx
jne 0x47cd32
mov eax, dword [ebx + 4]
test al, 1
jne 0x47cd32
cmp dword [ecx + 0x34], 0
lea esi, [ecx + 0x34]
je 0x47cde2
cmp dword [ecx + 0x30], 0
jne 0x47cd32
test edx, edx
jne 0x47cd32
test al, 1
jne 0x47cd32
mov eax, dword [esp + 0x1c]
cmp dword [eax], 1
jne 0x47cd32
test byte [ecx + 4], 9
jne 0x47cd32
mov edx, dword [ecx + 0x34]
test edx, edx
je 0x47cda7
cmp byte [ecx], 0x85
jne 0x47cd32
mov eax, dword [ecx + 0x20]
cmp dword [eax], 1
jl 0x47cd32
cmp dword [ecx + 0x44], 0
jne 0x47cd32
mov ecx, edx
test ecx, ecx
jne 0x47cd95
test ebp, ebp
je 0x47cde2
mov edx, dword [ebp]
test edx, edx
jle 0x47cde2
lea eax, [ebp + 0x14]
lea ecx, [ecx]
cmp word [eax], 0
je 0x47cd32
inc ecx
add eax, 0x14
cmp ecx, edx
jl 0x47cdd0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x74]
push 0
push 0
mov eax, dword [eax + 8]
push 0
push 0x15
push edi
mov dword [edi + 0xf4], eax
call fcn.004a51d0
mov eax, dword [esp + 0x44]
add esp, 0x14
mov dword [edi + 0xf4], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x47cea0
lea esp, [esp]
mov edi, dword [ebx + 0x30]
mov esi, dword [ebx + 0x3c]
mov ebp, dword [ebx + 0x34]
push 0
push ebx
push dword [esp + 0x20]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], 0
call fcn.004ce840
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x20], ecx
mov byte [ebx], 0x85
test eax, eax
jne 0x47ce6d
mov dword [ebx + 0x34], ebp
jmp 0x47ce7d
mov dword [eax + 0x34], ebp
test ebp, ebp
je 0x47ce77
mov dword [ebp + 0x38], eax
mov dword [eax + 0x38], ebx
mov dword [ebx + 0x34], eax
mov esi, dword [esp + 0x18]
cmp byte [esi + 0x51], 0
jne 0x47d1b4
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x47ce20
mov edi, dword [esp + 0x74]
jmp 0x47cea4
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x14]
mov ebp, eax
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], ebp
test eax, eax
je 0x47ceca
push eax
push esi
call fcn.004ad230
mov ecx, dword [esp + 0x1c]
add esp, 8
mov eax, dword [ecx + 8]
test eax, eax
je 0x47cedf
push eax
push esi
call fcn.004ad230
mov ecx, dword [esp + 0x1c]
add esp, 8
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x47cef4
push eax
push esi
call fcn.004ad230
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [ecx + 0x10]
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x14], 0
test edx, edx
je 0x47cf50
mov eax, dword [edx + 0x20]
cmp eax, 1
jne 0x47cf3d
mov ecx, dword [edi + 0x74]
test ecx, ecx
jne 0x47cf28
mov ecx, edi
mov eax, dword [ecx + 0x104]
mov dword [edx + 0x4c], eax
mov dword [ecx + 0x104], edx
mov ecx, dword [esp + 0x14]
jmp 0x47cf41
dec eax
mov dword [edx + 0x20], eax
mov dword [ecx + 0x10], 0
jmp 0x47cf50
mov eax, dword [ebp + 0x20]
mov esi, dword [ebx + 0x20]
mov byte [esp + 0x13], 0
mov dword [esp + 0x2c], eax
mov edi, dword [eax]
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], esi
test esi, esi
je 0x47cf76
mov al, byte [ecx + 0x24]
mov byte [esp + 0x13], al
jmp 0x47cfd2
mov eax, dword [esp + 0x74]
push 0
push 0x50
push dword [eax]
call fcn.004ad310
mov esi, eax
mov dword [esp + 0x28], eax
add esp, 0xc
test esi, esi
je 0x47d18a
push 0x48
lea eax, [esi + 8]
mov dword [esi + 4], 1
push 0
push eax
mov dword [esi], 1
call sub.MSVCRT.dll_memset
mov dword [esi + 0x34], 0xffffffff
add esp, 0xc
mov eax, dword [esi]
lea eax, [eax + eax*8]
mov dword [esi + eax*8 - 0x38], 0
mov dword [esi + eax*8 - 0x3c], 0
mov dword [ebx + 0x20], esi
cmp edi, 1
jle 0x47d002
mov eax, dword [esp + 0x7c]
inc eax
push eax
lea eax, [edi - 1]
push eax
push esi
push dword [esp + 0x80]
call fcn.004cf7b0
mov esi, eax
add esp, 0x10
mov dword [esp + 0x1c], esi
test esi, esi
je 0x47d18a
mov dword [ebx + 0x20], esi
test edi, edi
jle 0x47d067
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
add ebp, 8
add ebx, 8
mov dword [esp + 0x2c], edi
add ebx, esi
lea ebx, [ebx]
push dword [ebx + 0x34]
push dword [esp + 0x1c]
call fcn.004bf3f0
push 0x48
mov ecx, 0x12
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x2c]
push 0
push ebp
mov dword [esp + 0x38], eax
call sub.MSVCRT.dll_memset
add esp, 0x14
add ebx, 0x48
add ebp, 0x48
dec dword [esp + 0x2c]
jne 0x47d020
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0x13]
mov byte [ecx + esi + 0x2c], al
mov edx, dword [ebp + 0x30]
test edx, edx
je 0x47d0ac
test dword [ebx + 4], 0x400000
jne 0x47d0ac
xor ecx, ecx
cmp dword [edx], ecx
jle 0x47d0a2
lea eax, [edx + 0x14]
lea esp, [esp]
xor esi, esi
lea eax, [eax + 0x14]
mov word [eax - 0x14], si
inc ecx
cmp ecx, dword [edx]
jl 0x47d090
mov esi, dword [esp + 0x1c]
mov dword [ebx + 0x30], edx
mov dword [ebp + 0x30], 0
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [ebp + 0x24], 0
test edx, edx
jle 0x47d0cb
push dword [esp + 0x24]
push ecx
call fcn.004ceeb0
add esp, 8
test ecx, ecx
je 0x47d0f5
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x47d0f2
push eax
push ecx
push 0x2c
push dword [esp + 0x80]
call fcn.004c41f0
mov edx, dword [esp + 0x30]
add esp, 0x10
mov dword [ebx + 0x24], eax
jmp 0x47d0f5
mov dword [ebx + 0x24], ecx
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x51], 0
jne 0x47d132
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x1c]
push 0
mov dword [esp + 0x54], eax
lea eax, [esp + 0x44]
push ebx
push eax
mov dword [esp + 0x58], edx
call fcn.004eacd0
add esp, 0xc
mov eax, dword [ebp + 4]
and eax, 0x100
or dword [ebx + 4], eax
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x47d14e
mov dword [ebx + 0x3c], eax
mov dword [ebp + 0x3c], 0
test edi, edi
jle 0x47d170
mov eax, dword [esp + 0x28]
add eax, 8
add esi, eax
jmp 0x47d160
push esi
push ebx
call fcn.0049d0b0
add esp, 8
add esi, 0x48
dec edi
jne 0x47d160
mov ebx, dword [ebx + 0x34]
mov ebp, dword [ebp + 0x34]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x30], ebp
test ebx, ebx
jne 0x47cf50
push dword [esp + 0x74]
lea eax, [esp + 0x58]
push eax
call fcn.004a3be0
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.004e2c60
push esi
push dword [esp + 0x2c]
call fcn.004ce7f0
add esp, 0x18
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret