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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5eec45
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x40], ebx
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x3dc]
mov ecx, dword [esi + 0x41c]
mov eax, edi
shl eax, 4
sub eax, edi
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 0xbc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edx
call fcn.004e3630
xorps xmm0, xmm0
push 0xffffffffffffffff
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xc4]
push ecx
mov ecx, esi
movsd qword [esp + 0x78], xmm0
movsd qword [esp + 0x70], xmm0
movsd qword [esp + 0x68], xmm0
call fcn.005331d0
cmp dword [esp + 0x10], eax
je 0x45e94d
cmp byte [esi + 0x383], 0
jne 0x45e921
test edi, edi
jge 0x45e8cb
xor ebx, ebx
jmp 0x45e8cf
lea ebx, [edi + edi + 1]
push str.Invalid_File_Parameter_Data___
lea ecx, [esi + 0x2e8]
call fcn.0042f6f0
mov edi, eax
cmp byte [edi + 0x9c], 0
je 0x45e8f4
push ebx
lea ecx, [edi + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0x5fcfd8
mov ecx, edi
call fcn.0042f6f0
cmp byte [eax + 0x9c], 0
je 0x45e921
lea edx, [eax + 8]
test edx, edx
je 0x45e915
add eax, 0x10
jmp 0x45e917
xor eax, eax
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 4
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xc0]
push ecx
mov ecx, esi
call fcn.00532f60
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
push 5
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 5
call fcn.004587b0
push 5
lea ecx, [esp + 0x38]
mov dword [esp + 0x144], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 5
call fcn.004587b0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x140], 1
cmp eax, 0x8e
jne 0x45ea1c
mov ecx, dword [esi + 0x144]
lea edx, [esp + 0x58]
mov edi, 1
push edx
mov dword [esp + 0x20], edi
call fcn.00532920
mov ecx, dword [esi + 0x144]
lea eax, [esp + 0x48]
push eax
call fcn.00532920
cmp dword [esp + 0x48], 0
je 0x45ef44
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x144]
call fcn.00532920
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x50]
mov dword [eax], edx
push ecx
mov ecx, dword [esi + 0x144]
call fcn.00532920
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x54]
mov dword [eax], edx
push ecx
mov ecx, dword [esi + 0x144]
call fcn.00532920
jmp 0x45eb90
cmp eax, 0x8d
jne 0x45eb67
mov ecx, dword [esi + 0x144]
lea edx, [esp + 0x58]
push edx
call fcn.00532920
mov ecx, dword [esi + 0x144]
lea eax, [esp + 0x54]
push eax
call fcn.00532920
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esi + 0x144]
call fcn.00532920
cmp dword [esp + 0x48], edi
jne 0x45ea87
lea ecx, [esp + 0x34]
call fcn.00428180
lea ecx, [esp + 0x28]
call fcn.00428180
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x144]
lea edx, [esp + 0x1c]
push edx
call fcn.00532920
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004587b0
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.004587b0
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
jle 0x45eb90
mov ecx, dword [esi + 0x144]
lea edx, [esp + 0x50]
push edx
call fcn.00532920
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x144]
lea eax, [esp + 0x24]
push eax
call fcn.00532920
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x144]
call fcn.00532920
xor ebx, ebx
cmp dword [esp + 0x10], ebx
jle 0x45eb4e
lea ecx, [ecx]
mov ecx, dword [esi + 0x144]
lea edx, [esp + 0x4c]
push edx
call fcn.00532920
cmp edi, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
jl 0x45eb3b
lea ecx, [edi + 1]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004587b0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov dword [edx + edi*4], eax
inc ebx
inc edi
cmp ebx, dword [esp + 0x10]
jl 0x45eb10
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jl 0x45eac6
mov ebx, dword [esp + 0x40]
jmp 0x45eb90
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], 1
call fcn.004587b0
mov eax, dword [esp + 0x18]
test eax, eax
jge 0x45eb86
xor eax, eax
jmp 0x45eb8a
lea eax, [eax + eax + 1]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call fcn.00532f60
mov ecx, dword [ebx + 0x1c]
call fcn.00425000
mov ecx, dword [eax + 0x30]
push 0
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ecx + 0x20]
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
mov ecx, ebx
mov dword [esp + 0x54], edx
call fcn.0045de10
test eax, eax
jne 0x45ecad
push edi
lea edx, [esp + 0x2c]
push edx
push esi
mov ecx, ebx
call fcn.0045cd10
test eax, eax
jle 0x45ecad
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 0x44]
mov edi, dword [ebx + 0x20]
mov dword [esp + 0x44], eax
mov esi, dword [edi + 0x44]
fld qword [0x5fa920]
sub esp, 8
mov ecx, edi
fstp qword [esp]
mov dword [esp + 0x20], esi
call fcn.00436e80
test al, al
jne 0x45ec96
mov eax, dword [edi + 0x20]
fld qword [0x5fdfa8]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
sub esp, 8
fstp qword [esp]
push eax
mov eax, dword [edx + 0x98]
call eax
mov dword [esp + 0x10], eax
test eax, eax
je 0x45ec96
push 0x60
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x140], 2
test eax, eax
je 0x45ec6e
mov ecx, eax
call fcn.00445e40
mov esi, eax
jmp 0x45ec70
xor esi, esi
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
mov byte [esp + 0x144], 1
call fcn.004440c0
mov ecx, dword [esp + 0x14]
or dword [esi + 8], 3
push esi
call fcn.0042eff0
mov esi, dword [esp + 0x18]
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
cmp esi, dword [esp + 0x44]
je 0x45ecad
mov edi, esi
jmp 0x45ec01
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45ecba
mov edi, dword [eax + 0x5c]
jmp 0x45ecc1
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x5c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x44], ecx
push str.LAYER
lea ecx, [esp + 0x14]
call fcn.005be300
mov ebx, dword [ebx + 0x1c]
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
mov byte [esp + 0x144], 3
call fcn.00438af0
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x140], 1
call fcn.005be190
test esi, esi
je 0x45ed1e
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x10], ebx
jmp 0x45ed2a
mov dword [esp + 0x10], 0xffffffff
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x45ef44
cmp edi, dword [esp + 0x24]
je 0x45ef44
mov esi, dword [edi + 0x24]
or dword [edi + 8], 0x2000
test esi, esi
je 0x45ee7f
fld qword [esi + 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
sub esp, 8
lea ecx, [esp + 0x7c]
fstp qword [esp]
push ecx
mov ecx, esi
call edx
push 0x38
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x140], 4
test eax, eax
je 0x45ed93
lea ecx, [esp + 0x74]
push ecx
mov ecx, eax
call fcn.0043cf90
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x45ed9f
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
mov byte [esp + 0x144], 1
call fcn.0042f080
fld qword [esi + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
sub esp, 8
lea eax, [esp + 0x94]
fstp qword [esp]
push eax
mov ecx, esi
call edx
movsd xmm0, qword [esp + 0x74]
subsd xmm0, qword [esp + 0x8c]
movsd qword [esp + 0xa4], xmm0
movsd xmm0, qword [esp + 0x7c]
subsd xmm0, qword [esp + 0x94]
movsd qword [esp + 0xac], xmm0
movsd xmm0, qword [esp + 0x84]
subsd xmm0, qword [esp + 0x9c]
lea ecx, [esp + 0xa4]
movsd qword [esp + 0xb4], xmm0
call fcn.004a88b0
fld qword [0x5ff758]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x45ee71
push 0x38
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x140], 5
test eax, eax
je 0x45ee5b
lea ecx, [esp + 0x8c]
push ecx
mov ecx, eax
call fcn.0043cf90
jmp 0x45ee5d
xor eax, eax
mov ecx, dword [esp + 0x14]
push eax
mov byte [esp + 0x144], 1
mov ebx, eax
call fcn.0042f080
mov edx, dword [esp + 0x18]
mov dword [edi + 0x20], ebx
mov ebx, dword [esp + 0x10]
mov dword [edi + 0x1c], edx
push 0x14
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x140], 6
test eax, eax
je 0x45eea7
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, eax
call fcn.0045a650
jmp 0x45eea9
xor eax, eax
mov byte [esp + 0x140], 1
test eax, eax
je 0x45eebd
push eax
mov ecx, edi
call fcn.00438ac0
inc dword [edi + 4]
test ebx, ebx
jle 0x45eefe
push 0x14
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x140], 7
test eax, eax
je 0x45eee8
push ebx
mov ecx, eax
call fcn.00432060
jmp 0x45eeea
xor eax, eax
mov byte [esp + 0x140], 1
test eax, eax
je 0x45eefe
push eax
mov ecx, edi
call fcn.00438ac0
push 0x14
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x140], 8
test eax, eax
je 0x45ef23
push 1
mov ecx, eax
call fcn.004321c0
jmp 0x45ef25
xor eax, eax
mov byte [esp + 0x140], 1
test eax, eax
je 0x45ef39
push eax
mov ecx, edi
call fcn.00438ac0
mov edi, dword [edi + 0x5c]
test edi, edi
jne 0x45ed32
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.MSVCR90.dll_free]
test eax, eax
je 0x45ef58
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x45ef66
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4