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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 4]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0xc], ebx
je 0x47879a
cmp dword [ebx + 4], 4
jne 0x47879a
mov ecx, dword [esi + 8]
cmp ecx, edi
jne 0x478218
mov eax, 0x80004005
jmp 0x47879c
push dword [esi + 0x14]
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
push eax
push ebx
call fcn.0049a28d
cmp eax, edi
jl 0x47879c
push dword [esi + 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebx + 0x20]
xor ecx, ecx
push 4
add eax, 0xb
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
pop ecx
mov dword [esi + 0x18], eax
jne 0x478265
mov eax, 0x8007000e
jmp 0x47879c
mov ecx, dword [ebx + 0x20]
lea ecx, [ecx*4 + 0x2c]
push ecx
push 0xff
push eax
call sub.msvcrt.dll_memset
push dword [esi + 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebx + 0x34]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
cmp eax, edi
mov dword [esi + 0x1c], eax
je 0x47825b
mov ecx, dword [ebx + 0x34]
shl ecx, 2
push ecx
push 0xff
push eax
call sub.msvcrt.dll_memset
push dword [esi + 0x24]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebx + 0x24]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
cmp eax, edi
mov dword [esi + 0x24], eax
je 0x47825b
mov ecx, dword [ebx + 0x24]
shl ecx, 2
push ecx
push edi
push eax
call sub.msvcrt.dll_memset
push dword [esi + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebx + 0x28]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
cmp eax, edi
mov dword [esi + 0x2c], eax
je 0x47825b
mov ecx, dword [ebx + 0x28]
shl ecx, 2
push ecx
push 0xff
push eax
call sub.msvcrt.dll_memset
fldz
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0x20]
add esp, 0xc
inc eax
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x20]
inc eax
inc eax
mov dword [esi + 0x3c], eax
mov eax, dword [ebx + 0x20]
add eax, 3
mov dword [esi + 0x34], eax
mov eax, dword [ebx + 0x20]
add eax, 4
mov ecx, dword [esi + 8]
mov dword [esi + 0x74], eax
mov eax, dword [ebx + 0x20]
add eax, 5
mov dword [esi + 0x78], eax
mov eax, dword [ebx + 0x20]
add eax, 6
mov dword [esi + 0x7c], eax
mov eax, dword [ebx + 0x20]
add eax, 7
mov dword [esi + 0x80], eax
mov eax, dword [ebx + 0x20]
push edi
add eax, 8
mov dword [esi + 0x84], eax
mov eax, dword [ebx + 0x20]
push edi
push ecx
add eax, 9
push ecx
mov dword [esi + 0x88], eax
fstp qword [esp]
mov eax, dword [ebx + 0x20]
push edi
add eax, 0xa
push edi
mov dword [esi + 0x8c], eax
push dword [ecx + 0x2aa4]
call fcn.00491133
fldz
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x18]
mov dword [edx + ecx*4], eax
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x38]
push edi
push edi
or ebx, 0xffffffff
mov dword [ecx + eax*4], ebx
mov ecx, dword [esi + 8]
push ecx
push ecx
fstp qword [esp]
push edi
push edi
push dword [ecx + 0x2aa4]
call fcn.00491133
fldz
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x18]
push edi
push edi
mov dword [edx + ecx*4], eax
mov ecx, dword [esi + 8]
push ecx
push ecx
fstp qword [esp]
push edi
push edi
push dword [ecx + 0x2aa4]
call fcn.00491133
fld1
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x18]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], ebx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x18]
mov ecx, dword [ecx + eax*4]
mov edx, dword [esi + 8]
mov edx, dword [edx + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 0x28], eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov ecx, dword [ecx + eax*4]
mov edx, dword [edx + 0x1c]
mov ecx, dword [edx + ecx*4]
push 0x20
mov dword [ecx + 0x28], eax
mov ecx, dword [esi + 8]
mov ebx, 0x800
push ebx
push ecx
push ecx
fstp qword [esp]
push edi
push edi
push dword [ecx + 0x2a54]
call fcn.00491133
fldz
mov ecx, dword [esi + 8]
push 0x20
push ebx
push ecx
push ecx
fstp qword [esp]
push edi
push edi
mov dword [esi + 0x68], eax
push dword [ecx + 0x2a54]
call fcn.00491133
fld qword [0x406870]
mov ecx, dword [esi + 8]
push 0x20
push ebx
push ecx
push ecx
fstp qword [esp]
push edi
push edi
mov dword [esi + 0x6c], eax
push dword [ecx + 0x2a54]
call fcn.00491133
mov ecx, dword [esi + 8]
push 0x10
push ebx
push edi
push 1
push edi
mov dword [esi + 0x70], eax
push edi
push dword [ecx + 0x2a54]
call fcn.004911b2
mov ecx, dword [esi + 8]
push 0x10
push ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x50], eax
push dword [ecx + 0x2a54]
call fcn.004911b2
mov ecx, dword [esi + 8]
push 0x10
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
mov dword [esi + 0x4c], eax
push dword [ecx + 0x2a54]
call fcn.004911b2
mov ecx, dword [esi + 8]
push 0x10
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
mov dword [esi + 0x54], eax
push dword [ecx + 0x2a54]
call fcn.004911b2
mov ecx, dword [esi + 8]
push 8
push ebx
push edi
push 1
push edi
push edi
mov dword [esi + 0x58], eax
push dword [ecx + 0x2a54]
call fcn.004911b2
mov ecx, dword [esi + 8]
push 8
push ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x60], eax
push dword [ecx + 0x2a54]
call fcn.004911b2
mov ecx, dword [esi + 8]
push 8
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
mov dword [esi + 0x5c], eax
push dword [ecx + 0x2a54]
call fcn.004911b2
mov ecx, dword [esi + 8]
push edi
push 0x80000800
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
mov dword [esi + 0x64], eax
push dword [ecx + 0x2a54]
call fcn.004911b2
mov ecx, dword [esi + 8]
push edi
push 0x80000800
push edi
push edi
push edi
push edi
mov dword [esi + 0x40], eax
push dword [ecx + 0x2a54]
call fcn.004911b2
fldz
mov ecx, dword [esi + 8]
push edi
push edi
push ecx
push ecx
fstp qword [esp]
push edi
push edi
mov dword [esi + 0x44], eax
push dword [ecx + 0x2a50]
call fcn.00491133
mov ecx, dword [esi + 8]
push 4
push 4
push 0xffffffffffffffff
push edi
push 0x751
push 0x401cb0
mov dword [esi + 0x48], eax
call fcn.004910cd
mov ecx, dword [esi + 8]
push 4
push 4
push 0xffffffffffffffff
push edi
push 0x751
push 0x401cb0
mov dword [esi + 0xb4], eax
call fcn.004910cd
cmp dword [esi + 0xb4], 0xffffffff
mov dword [esi + 0xb8], eax
je 0x47825b
cmp eax, 0xffffffff
je 0x47825b
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x478647
fld1
jmp 0x478649
fldz
push 0x20
push ebx
push ecx
push ecx
mov ecx, dword [esi + 8]
fstp qword [esp]
push dword [ebp - 4]
push eax
push dword [esi + 0xb4]
call fcn.00491133
cmp eax, 0xffffffff
je 0x47825b
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, dword [ebp - 4]
push 8
setne al
push ebx
dec eax
cdq
push edx
push eax
push dword [ebp - 4]
push ecx
push dword [esi + 0xb8]
mov ecx, dword [esi + 8]
call fcn.004911b2
cmp eax, 0xffffffff
je 0x47825b
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jb 0x47863b
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jb 0x478638
mov ecx, esi
call fcn.0044dee9
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x18]
mov dword [edx + ecx*4], eax
mov ecx, esi
call fcn.0044dee9
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x18]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 8]
test word [eax + 0x98], 0x1000
je 0x4786ee
mov ecx, esi
call fcn.0044decd
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x18]
mov dword [edx + ecx*4], eax
jmp 0x4786fb
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x18]
or dword [ecx + eax*4], 0xffffffff
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x98], 0xffffffff
xor ebx, ebx
push edi
inc ebx
push edi
lea ecx, [ebp - 0x38]
mov dword [esi + 0x94], ebx
mov dword [esi + 0x9c], edi
call fcn.004903e6
lea ecx, [ebp - 0x38]
call fcn.004904b7
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x47878d
lea eax, [ebp - 0x38]
mov dword [ebp - 8], eax
mov eax, dword [esi + 8]
test dword [eax + 0x98], 0x1000000
jne 0x478749
mov dword [ebp - 8], edi
push ebx
mov ebx, dword [ebp - 0xc]
push edi
push dword [ebp - 8]
mov ecx, esi
push dword [ebx + 0x38]
call fcn.00475dd2
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x47878d
push edi
push edi
push dword [ebp - 8]
mov ecx, esi
push dword [ebx + 0x38]
call fcn.00475dd2
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x47878d
cmp dword [esi + 0xc4], edi
je 0x47878d
lea ecx, [ebp - 0x38]
call fcn.0049041f
jmp 0x47820e
lea ecx, [ebp - 0x38]
call fcn.0049041f
mov eax, dword [ebp - 4]
jmp 0x47879c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret