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

Disassembly:
sub esp, 0x58
mov eax, dword [0x59c6b8]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
push ebx
mov ebx, dword [esp + 0x68]
sub eax, dword [ebx + 4]
mov edx, dword [ebx + 0xc]
push ebp
mov ebp, dword [esp + 0x64]
sub ebp, dword [ebx]
push esi
push edi
mov esi, ecx
mov ecx, dword [ebx + 8]
lea edi, [ecx + ebp - 1]
lea ecx, [edx + eax - 1]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x80]
mov ecx, dword [ecx + 0x84]
push edx
mov edx, dword [esp + 0x20]
push edx
push edi
push eax
push ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
call fcn.0048e4b0
mov dword [esp + 0x34], eax
cmp eax, 1
je 0x485438
mov eax, dword [esi + 8]
fld qword [eax + 0x48]
fmul qword [0x536240]
fadd qword [0x5312a8]
fstp qword [esp + 0x3c]
fld qword [esp + 0x3c]
fnstcw word [esp + 0x14]
mov ax, word [esp + 0x14]
and ax, 0xf3ff
or ax, 0x400
mov word [esp + 0x18], ax
fldcw word [esp + 0x18]
fistp dword [esp + 0x20]
fldcw word [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 8]
mov eax, dword [edx + 0x34]
push 0
push 1
push ecx
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.004840a0
cmp dword [esp + 0x34], 0
jne 0x4851ea
cmp dword [ebx + 0x10], 0
je 0x485160
mov ebp, dword [esp + 0x10]
cmp ebp, dword [esp + 0x1c]
jg 0x485438
mov dword [esp + 0x10], 0
jmp 0x485130
mov edx, dword [ebx + 8]
imul edx, dword [esp + 0x10]
add edx, dword [ebx + 0x14]
mov eax, dword [esp + 0x24]
push 0
push edx
push ebp
push edi
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call dword [esp + 0x78]
inc dword [esp + 0x10]
inc ebp
cmp ebp, dword [esp + 0x1c]
jle 0x485130
jmp 0x485438
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x20], edx
mov ebx, eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x1c]
jg 0x485438
jmp 0x485180
mov ebp, dword [esp + 0x24]
cmp ebp, edi
jg 0x4851c4
mov eax, dword [esp + 0x20]
mov cl, byte [eax]
inc eax
mov dword [esp + 0x20], eax
xor eax, eax
lea edx, [eax + ebp]
cmp edx, edi
jg 0x4851b5
mov ebx, dword [esi + 0xc]
mov dl, cl
and dl, 0x80
neg dl
sbb dl, dl
add ebx, eax
inc eax
add cl, cl
mov byte [ebx + ebp], dl
cmp eax, 8
jl 0x485195
add ebp, 8
cmp ebp, edi
jle 0x485188
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x24]
mov eax, dword [esi + 0xc]
push 0
add eax, ebp
push eax
push ebx
push edi
push ebp
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call dword [esp + 0x78]
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, dword [esp + 0x1c]
jle 0x485180
jmp 0x485438
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x80]
mov ecx, dword [eax + 0x84]
push edx
call fcn.0048ea40
cmp eax, ebp
jle 0x485209
mov ebp, eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
push ecx
mov ecx, dword [eax + 0x84]
call fcn.0048ea60
cmp eax, edi
jge 0x485228
mov dword [esp + 0x28], eax
mov edi, eax
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x80]
mov ecx, dword [eax + 0x84]
push edx
call fcn.0048ea80
cmp eax, dword [esp + 0x10]
jle 0x485247
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
push ecx
mov ecx, dword [eax + 0x84]
call fcn.0048eaa0
cmp eax, dword [esp + 0x1c]
jge 0x485266
mov dword [esp + 0x1c], eax
cmp ebp, edi
jg 0x485438
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x1c]
jg 0x485438
cmp dword [ebx + 0x10], 0
mov dword [esp + 0x14], eax
je 0x485317
mov edx, edi
sub edx, ebp
inc edx
sub eax, dword [esp + 0x10]
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
jmp 0x4852a0
mov ecx, dword [ebx + 8]
imul ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0xc]
add ecx, ebp
add ecx, dword [ebx + 0x14]
push eax
push ecx
add edx, ebp
push edx
call fcn.00511be0
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
mov edx, dword [esp + 0x20]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0xc]
push edi
push ebp
push edx
push ecx
mov ecx, dword [eax + 0x84]
call fcn.0048e630
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
push 0
add edx, ebp
push edx
push eax
push edi
push ebp
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call dword [esp + 0x78]
mov eax, dword [esp + 0x14]
inc dword [esp + 0x10]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x1c]
jle 0x4852a0
jmp 0x485438
mov edx, ebp
sub edx, dword [esp + 0x24]
mov ecx, edx
sar ecx, 3
and edx, 7
sub eax, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], eax
jmp 0x485348
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edi, dword [ebx + 8]
add edi, 7
sar edi, 3
imul edi, dword [esp + 0x10]
add edi, ecx
add edi, dword [ebx + 0x14]
mov cl, dl
mov al, byte [edi]
shl al, cl
inc edi
mov ecx, ebp
mov byte [esp + 0x18], al
cmp edx, 8
jge 0x4853a0
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], edx
cmp ecx, dword [esp + 0x28]
jg 0x4853e3
mov edx, dword [esi + 0xc]
and al, 0x80
neg al
sbb al, al
mov byte [ecx + edx], al
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0x18]
inc edx
add al, al
inc ecx
mov byte [esp + 0x18], al
mov dword [esp + 0x20], edx
cmp edx, 8
jl 0x485375
cmp ecx, dword [esp + 0x28]
jg 0x4853e3
mov dl, byte [edi]
inc edi
xor eax, eax
jmp 0x4853b0
lea ebx, [eax + ecx]
cmp ebx, dword [esp + 0x28]
jg 0x4853d2
mov ebp, dword [esi + 0xc]
mov bl, dl
and bl, 0x80
neg bl
sbb bl, bl
add ebp, eax
inc eax
add dl, dl
mov byte [ecx + ebp], bl
cmp eax, 8
jl 0x4853b0
add ecx, 8
cmp ecx, dword [esp + 0x28]
jle 0x4853a6
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esi + 0xc]
push ebp
push ecx
mov ecx, dword [eax + 0x84]
push edx
call fcn.0048e880
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push 0
add eax, ebp
push eax
push edi
push ecx
push ebp
lea edx, [esp + 0x58]
push edx
mov ecx, esi
call dword [esp + 0x78]
inc dword [esp + 0x10]
inc edi
mov dword [esp + 0x14], edi
cmp edi, dword [esp + 0x1c]
jle 0x485340
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
pop edi
mov dword [esi + 0x138], eax
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00511afd
add esp, 0x58
ret 0xc