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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x864
mov eax, dword [0x53f00c]
xor eax, esp
mov dword [esp + 0x860], eax
push ebx
push esi
push edi
mov dword [esp + 0x10], edx
mov edi, ecx
call fcn.00409460
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x45b0b2
mov esi, dword [esi]
push 0x800
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.004ccc90
xorps xmm0, xmm0
mov dword [esp + 0x58], 0
add esp, 0xc
movlpd qword [esp + 0x34], xmm0
mov ecx, edi
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x5c], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x30], esi
call fcn.00409670
sub esp, 8
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x44], 0
call fcn.0049e580
add esp, 8
test eax, eax
jne 0x45b44b
nop word [eax + eax]
lea eax, [esp + 0x68]
mov dword [esp + 0x40], 0x800
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], eax
call fcn.0049e780
mov ecx, eax
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x45b16c
cmp ecx, 1
jne 0x45b3fc
mov eax, dword [esp + 0x40]
mov ecx, 0x800
sub ecx, eax
test ecx, ecx
jle 0x45b362
mov ecx, dword [esp + 0x10]
mov ebx, 0x800
sub ebx, eax
call fcn.00409460
mov edi, eax
mov edx, dword [edi + 0x14]
mov ecx, edx
mov esi, dword [edi + 0x10]
sub ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
cmp ebx, ecx
ja 0x45b1dd
lea eax, [esi + ebx]
mov dword [edi + 0x10], eax
cmp edx, 0x10
jb 0x45b1b4
mov edi, dword [edi]
push ebx
lea eax, [esp + 0x6c]
add esi, edi
push eax
push esi
call fcn.00402480
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], 0
push eax
lea eax, [esi + ebx]
push eax
call fcn.00402490
add esp, 0x14
jmp 0x45b362
mov ecx, dword [esp + 0x10]
call fcn.00402440
sub eax, esi
cmp eax, ebx
jb 0x45b486
mov ecx, dword [esp + 0x10]
lea eax, [esi + ebx]
mov dword [esp + 0x14], eax
call fcn.00402440
mov ecx, dword [esp + 0x14]
mov esi, eax
or ecx, 0xf
mov dword [esp + 0x28], ecx
cmp ecx, esi
ja 0x45b244
mov ecx, dword [esp + 0x10]
call fcn.00409460
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x45b244
lea eax, [ecx + edx]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004097c0
add esp, 8
mov esi, dword [eax]
lea ecx, [esi + 1]
cmp ecx, 0x1000
jb 0x45b27a
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004c9ece
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x45b481
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x45b28b
test ecx, ecx
je 0x45b289
push ecx
call fcn.004c9ece
add esp, 4
jmp 0x45b28b
xor eax, eax
cmp dword [esp + 0x20], 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x14], esi
mov ecx, dword [esp + 0x18]
push eax
lea esi, [ecx + eax]
lea edx, [esi + ebx]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edx
jb 0x45b31b
mov esi, dword [edi]
push esi
push ecx
call fcn.00402470
push ebx
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x30]
call fcn.00402470
lea eax, [esp + 0x27]
mov byte [esp + 0x27], 0
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.00402490
mov ecx, dword [esp + 0x40]
add esp, 0x20
inc ecx
cmp ecx, 0x1000
jb 0x45b309
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x45b481
mov esi, edx
push ecx
push esi
call fcn.004c9ffc
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [edi], eax
jmp 0x45b362
push edi
push ecx
call fcn.00402470
push ebx
lea eax, [esp + 0x78]
push eax
push esi
call fcn.00402470
lea eax, [esp + 0x27]
mov byte [esp + 0x27], 0
push eax
lea eax, [esi + ebx]
push eax
call fcn.00402490
lea eax, [esp + 0x38]
push eax
call fcn.0040ade0
push edi
mov esi, eax
call fcn.0040ade0
push eax
push 4
call fcn.00402430
mov ecx, dword [esi]
add esp, 0x30
mov dword [eax], ecx
mov eax, dword [esp + 0x2c]
cmp eax, 1
je 0x45b37d
test eax, eax
jne 0x45b140
cmp dword [esp + 0x34], eax
jne 0x45b140
cmp dword [esp + 0x50], 0
je 0x45b462
mov edx, dword [esp + 0x54]
test edx, edx
je 0x45b462
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x45b462
lea eax, [esp + 0x30]
cmp dword [ecx], eax
jne 0x45b462
mov eax, dword [ecx + 4]
sub eax, 0x3f34
cmp eax, 0x1f
ja 0x45b462
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x45b3d6
push eax
push dword [esp + 0x5c]
call edx
mov edx, dword [esp + 0x5c]
add esp, 8
mov ecx, dword [esp + 0x4c]
push ecx
push dword [esp + 0x5c]
call edx
xor eax, eax
add esp, 8
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x860]
xor ecx, esp
call fcn.004c9ebd
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x50], 0
je 0x45b44b
mov edx, dword [esp + 0x54]
test edx, edx
je 0x45b44b
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x45b44b
lea eax, [esp + 0x30]
cmp dword [ecx], eax
jne 0x45b44b
mov eax, dword [ecx + 4]
sub eax, 0x3f34
cmp eax, 0x1f
ja 0x45b44b
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x45b441
push eax
push dword [esp + 0x5c]
call edx
mov edx, dword [esp + 0x5c]
add esp, 8
mov ecx, dword [esp + 0x4c]
push ecx
push dword [esp + 0x5c]
call edx
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x860]
xor ecx, esp
call fcn.004c9ebd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x86c]
mov eax, 0xfffffffe
pop edi
test eax, eax
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.004c9ebd
mov esp, ebp
pop ebp
ret
call fcn.004cfb29
call fcn.0040b0e0
int3