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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x1c]
or ebx, 0x1800800
mov dword [ebp - 4], 0
test edi, edi
je 0x45ad40
push 0x1ec
push 0
push edi
call fcn.00595760
add esp, 0xc
mov esi, dword [ebp + 8]
test esi, esi
je 0x45ad82
test ebx, 0x1000
je 0x45ad82
mov ax, word [ebp + 0x10]
test ax, ax
js 0x45ad74
cwde
push eax
push esi
call fcn.0045b490
add esp, 8
test ax, ax
jne 0x45ad74
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0045b980
add esp, 4
test ax, ax
je 0x45ad68
push 0x348
push 1
call fcn.00592c0b
mov esi, eax
add esp, 8
test esi, esi
jne 0x45ada1
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 1
mov word [esi + 0x218], cx
xor ecx, ecx
mov dword [esi], fcn.00456000
mov dword [esi + 4], fcn.004585b0
mov dword [esi + 8], fcn.00453f80
mov dword [esi + 0xc], fcn.00457d90
mov dword [esi + 0x10], fcn.00462ec0
mov dword [esi + 0x14], fcn.0045c8f0
mov dword [esi + 0x18], fcn.005007e0
mov dword [esi + 0x1c], fcn.0045cae0
mov dword [esi + 0x20], fcn.0045cb00
mov dword [esi + 0x24], fcn.0045ca10
mov dword [esi + 0x2c], fcn.00452460
mov byte [esi + 0x21e], 0
mov dword [esi + 0x200], eax
mov dword [esi + 0x210], edi
mov dword [esi + 0x8c], ebx
mov dword [esi + 0xfa], 0x1000000
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf0], 0x18
mov word [esi + 0xf8], cx
mov dword [esi + 0x109], 0x1000000
mov word [esi + 0xfe], cx
mov dword [esi + 0x100], ecx
mov dword [esi + 0x104], ecx
mov byte [esi + 0x44], cl
mov dword [esi + 0x90], ecx
mov dword [esi + 0x3c], 1
mov dword [esi + 0x114], 0x3f19999a
mov dword [esi + 0x118], 0x3f4ccccd
mov dword [esi + 0x11c], 0x3f800000
mov dword [esi + 0x120], 0x3f800000
mov dword [esi + 0x240], ecx
mov dword [esi + 0x23c], ecx
mov dword [esi + 0x228], ecx
mov dword [esi + 0x22c], ecx
mov dword [esi + 0x230], ecx
mov dword [esi + 0x234], ecx
test bl, 0x40
je 0x45aed8
mov byte [esi + 0x97], 1
and ebx, 0xffffffbf
test eax, eax
je 0x45aee8
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045cae0
jmp 0x45aef9
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.0045cae0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
add esp, 8
lea eax, [ebp - 0xc]
push 0x11
push eax
call fcn.0045cb00
mov ecx, eax
add esp, 8
mov dword [ebp + 0x14], ecx
test ecx, ecx
je 0x45afd5
cmp dword [ecx + 4], 0xffffffff
jne 0x45af39
mov eax, dword [ecx + 4]
mov ebx, 4
push ecx
mov dword [ebp + 8], ebx
mov dword [ebp - 4], eax
call fcn.0045ca10
add esp, 4
jmp 0x45afdd
mov ax, word [ebp + 0x10]
push 0
cwde
push eax
push esi
push ecx
call fcn.00457de0
movzx eax, ax
add esp, 0x10
mov dword [ebp + 8], eax
cmp ax, 2
jne 0x45afbe
cmp word [ebp + 0x10], 0xffff
jne 0x45afbe
test ebx, 0x1000
jne 0x45afbe
call fcn.0045a570
test eax, eax
jle 0x45afbe
xor ebx, ebx
xor edi, edi
mov eax, dword [0x64500c]
cmp dword [ebx + eax + 0x14], 0
je 0x45afae
test byte [ebx + eax], 1
je 0x45afae
mov eax, dword [ebp + 0x14]
push 0
push 0
push dword [eax]
call fcn.00595cb4
push 0
push edi
push esi
push dword [ebp + 0x14]
call fcn.00457de0
movzx eax, ax
add esp, 0x1c
mov dword [ebp + 8], eax
cmp ax, 2
jne 0x45afbb
inc edi
add ebx, 0x2c
call fcn.0045a570
cmp edi, eax
jl 0x45af73
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
call fcn.0045ca10
add esp, 4
jmp 0x45afdd
mov ebx, 3
mov dword [ebp + 8], ebx
test edi, edi
je 0x45b038
mov eax, dword [esi + 0x3c]
xor ebx, ebx
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [esi + 0x240]
mov dword [edi + 0x78], eax
test eax, eax
jle 0x45b014
lea ecx, [edi + 0x7c]
lea edx, [esi + 0x244]
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ecx], eax
lea ecx, [ecx + 4]
inc ebx
cmp ebx, dword [edi + 0x78]
jl 0x45b004
mov eax, dword [esi + 0x23c]
mov ebx, dword [ebp + 8]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x228]
mov dword [edi + 0x19c], eax
mov eax, dword [esi + 0x90]
mov dword [edi + 0x1e8], eax
mov eax, dword [esi + 0x22c]
test eax, eax
je 0x45b0dd
test edi, edi
je 0x45b080
mov ecx, dword [esi + 0x228]
push eax
mov dword [ebp + 8], ecx
call fcn.00453b20
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [esi + 0x228], eax
test eax, eax
je 0x45b06e
mov dword [eax + 0xc], ecx
jmp 0x45b074
mov dword [esi + 0x228], ecx
mov eax, dword [esi + 0x228]
mov dword [edi + 0x19c], eax
push dword [esi + 0x22c]
call fcn.00437370
push dword [esi + 0x230]
call fcn.00437370
mov eax, dword [esi + 0x234]
add esp, 8
mov dword [esi + 0x230], 0
test eax, eax
je 0x45b0b6
push eax
call fcn.00592c4b
add esp, 4
mov eax, dword [esi + 0x238]
mov dword [esi + 0x234], 0
test eax, eax
je 0x45b0d3
push eax
call fcn.00592c4b
add esp, 4
mov dword [esi + 0x238], 0
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x45b0f0
push eax
call fcn.00592c4b
add esp, 4
push esi
call fcn.00592c4b
add esp, 4
cmp bx, 0xffff
jne 0x45b108
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
movsx eax, bx
pop ebx
mov esp, ebp
pop ebp
ret