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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp byte [edi + 0x154], bl
je 0x428149
mov ecx, dword [edi + 0x144]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ecx
mov byte [edi + 0x154], bl
mov dword [esp + 0x20], ebx
call dword [0x476358]
mov ecx, dword [edi + 0xfc]
cmp ecx, ebx
je 0x428149
mov esi, dword [esp + 0x18]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x2c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x30]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0xb4]
call eax
mov eax, dword [edi + 0x14c]
cmp eax, ebx
je 0x42815a
push eax
call dword [0x476020]
mov eax, dword [edi + 0x150]
cmp eax, ebx
je 0x42816b
push eax
call dword [0x47602c]
cmp byte [edi + 0x170], 0
mov dword [edi + 0x14c], ebx
mov dword [edi + 0x150], ebx
je 0x428235
cmp byte [edi + 0x154], 0
mov byte [edi + 0x170], 0
je 0x4281c2
cmp byte [edi + 0x1e], 0
mov byte [edi + 0x170], 1
je 0x4281b1
mov ecx, dword [edi + 0x20]
push ecx
mov ecx, edi
call fcn.004280d0
jmp 0x428235
mov edx, dword [edi + 0x144]
push ebx
push ebx
push edx
call dword [0x47639c]
jmp 0x428235
mov ecx, dword [edi + 0xfc]
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0xa8]
mov dword [esp + 0x5c], eax
push 0x80000003
lea eax, [esp + 0x60]
mov byte [esp + 0x68], 1
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
push eax
push 0x428550
call edx
cmp eax, ebx
jne 0x42822e
mov ecx, dword [edi + 0xfc]
xor eax, eax
mov dword [esp + 0x20], eax
push 0x80000003
mov dword [esp + 0x20], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x24], 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
push edx
push 0x428550
call eax
cmp eax, ebx
je 0x428235
mov esi, eax
call fcn.00424fd0
cmp byte [edi + 0x1d], 0
je 0x428265
mov ecx, dword [edi + 0xfc]
lea edx, [esp + 0x18]
push edx
mov esi, edi
mov byte [edi + 0x1d], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00425d30
cmp byte [edi + 0xb8], 0
je 0x4282e5
mov ecx, dword [edi + 0xfc]
push 0x80000001
mov byte [edi + 0xb8], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push ebx
push 0x4285b0
call edx
mov esi, eax
cmp esi, ebx
je 0x4282e5
mov ebx, dword [esi]
mov eax, dword [ebx + 0xb0]
mov ecx, esi
call eax
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [ebx + 0xb4]
mov dword [ecx + 0xc], eax
mov ecx, esi
call edx
mov ecx, dword [edi + 0xfc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push 0x80000001
push 0
push 0x4285b0
call edx
mov esi, eax
test esi, esi
jne 0x428293
xor ebx, ebx
cmp dword [edi + 0x150], ebx
jne 0x4283cd
mov ecx, dword [edi + 0x144]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [0x476358]
cmp dword [esp + 0x18], ebx
jne 0x428336
cmp dword [esp + 0x20], ebx
jne 0x428336
cmp dword [esp + 0x1c], ebx
jne 0x428336
cmp dword [esp + 0x24], ebx
jne 0x428336
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 0x148]
push edx
call dword [0x476034]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov dword [edi + 0x14c], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
push ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x44], eax
push ebx
lea eax, [esp + 0x44]
push eax
push ebx
mov dword [esp + 0x4c], 0x28
mov dword [esp + 0x54], ecx
mov word [esp + 0x58], 1
mov word [esp + 0x5a], 0x20
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x28], ebx
call dword [0x476024]
cmp dword [esp + 0x10], ebx
mov dword [edi + 0x150], eax
je 0x42832b
mov eax, dword [ebp + 8]
cmp eax, ebx
jl 0x4283d9
cmp eax, 0x64
jle 0x4283e0
mov dword [ebp + 8], 0x64
fild dword [ebp + 8]
lea edx, [esp + 0x70]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul qword [0x482048]
or eax, 0xc00
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x144]
push edx
fldcw word [esp + 0x10]
push eax
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1f], 1
fistp dword [esp + 0x14]
mov cl, byte [esp + 0x14]
mov byte [esp + 0x1e], cl
fldcw word [esp + 0x18]
call dword [0x476358]
mov edx, dword [edi + 0x144]
lea ecx, [esp + 0x90]
push ecx
push edx
call dword [0x47634c]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x78]
sub edx, dword [esp + 0x70]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
mov dword [esp + 0x6c], ecx
mov ecx, dword [edi + 0x144]
push 0xffffffffffffffec
push ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call dword [0x4763b4]
test eax, 0x80000
jne 0x4284b2
mov edx, dword [edi + 0x144]
xor eax, 0x80000
push eax
push 0xffffffffffffffec
push edx
call dword [0x476384]
mov eax, dword [edi + 0x150]
mov ecx, dword [edi + 0x14c]
mov esi, dword [0x476030]
push eax
push ecx
call esi
mov ecx, dword [edi + 0xfc]
cmp ecx, ebx
mov dword [esp + 0xc], eax
je 0x4284ec
mov edx, dword [ecx]
mov edx, dword [edx + 0x98]
lea eax, [esp + 0x70]
push eax
mov eax, dword [edi + 0x14c]
push eax
call edx
mov edx, dword [edi + 0x14c]
push 2
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x94]
push ecx
push edx
mov edx, dword [edi + 0x148]
lea eax, [esp + 0x94]
push eax
mov eax, dword [edi + 0x144]
lea ecx, [esp + 0x80]
push ecx
push edx
push eax
call dword [0x47629c]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi + 0x14c]
push ecx
push edx
mov ebx, eax
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4