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

Disassembly:
sub esp, 0xb0
mov eax, dword [0x508578]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xbc]
push ebx
mov ebx, dword [esp + 0xbc]
push ebp
push esi
push edi
mov edi, dword [esp + 0xc4]
mov ebp, dword [edi]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x10], 0
movzx edx, word [ebp + 0x122]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
cmp eax, edx
jbe 0x4854d6
mov word [ebp + 0x122], ax
test byte [edi + 0x10], 1
mov dword [edi + 0x14], ebx
jne 0x4854f5
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x2c]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jmp 0x485502
mov eax, 0x10000
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x80]
cmp dword [eax + 0x34], 0
je 0x485589
mov eax, dword [eax + 0x34]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ecx]
lea edx, [esp + 0x64]
push edx
push ebx
push eax
call ecx
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x485f06
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
push eax
lea esi, [edi + 0x1c]
pxor xmm0, xmm0
mov dword [esi], eax
push edx
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x23], 1
movq qword [esp + 0x78], xmm0
movq qword [esp + 0x80], xmm0
movq qword [esp + 0x88], xmm0
movq qword [esp + 0x90], xmm0
movq qword [esp + 0x98], xmm0
call fcn.0043eed0
lea ecx, [esp + 0x78]
mov dword [edi + 0x18], ecx
jmp 0x485598
lea esi, [edi + 0x1c]
push esi
push ebx
push ebp
call fcn.00484200
mov dword [esp + 0x24], eax
mov eax, dword [esi]
add esp, 0xc
test eax, eax
jle 0x485626
mov ecx, dword [ebp + 0x2b0]
test ecx, ecx
jne 0x4855c8
mov edx, dword [ebp + 0x80]
cmp dword [edx + 0x34], ecx
jne 0x4855c8
mov eax, 8
mov dword [esp + 0x10], eax
jmp 0x485edb
add ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebp + 0x208]
push ebx
push edi
call ecx
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x485edb
mov edx, dword [ebp + 0x210]
push edi
mov byte [esp + 0x1a], 1
call edx
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x485ecb
push ebx
call fcn.00479bc0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x485ecb
cmp byte [esp + 0xd0], al
jne 0x485ecb
cmp dword [esi], 0
je 0x485cb7
cmp word [edi + 0x20], 0
je 0x485cb7
mov ecx, edi
call fcn.0047a2d0
push ebx
mov esi, edi
call fcn.00479c70
movzx eax, word [edi + 0x20]
add esp, 4
test ax, ax
jle 0x485699
mov eax, dword [ebp + 0x214]
push edi
call eax
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x485ec0
mov ecx, dword [ebp + 0x20c]
push edi
call ecx
add esp, 4
call fcn.00484fb0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x485edb
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043c980
jmp 0x485ed4
or edx, 0xffffffff
cmp ax, dx
jne 0x485cad
mov eax, dword [ebp + 0x64]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
lea eax, [edi + 0xcc]
test eax, eax
je 0x4856cc
mov eax, dword [eax]
test eax, eax
je 0x4856cc
test ecx, ecx
je 0x4856fc
mov eax, dword [eax + 4]
dec ecx
test eax, eax
jne 0x4856c0
xor esi, esi
mov eax, esi
test esi, esi
je 0x4856de
mov dword [eax + 8], edx
mov eax, dword [eax + 4]
test eax, eax
jne 0x4856d4
lea eax, [edi + 0xcc]
push ebx
push eax
call fcn.0043fbe0
add esp, 8
test eax, eax
je 0x485700
mov eax, 0x15
jmp 0x485ebc
mov esi, eax
jmp 0x4856ce
test esi, esi
je 0x485709
mov dword [esi + 8], ebx
jmp 0x48573e
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push 0xc
push edx
call fcn.004418b0
mov ecx, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x485ec0
push ecx
lea eax, [edi + 0xcc]
push eax
mov dword [ecx + 8], ebx
call fcn.0043fc10
add esp, 8
mov eax, dword [esp + 0x1c]
movsx ecx, word [eax + 0x16]
movsx edx, word [eax + 0x14]
mov eax, dword [ebp + 0x218]
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0xb8], edx
call eax
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x485ec0
mov ecx, dword [edi + 0xa4]
mov edx, dword [ebp + 0x20c]
push edi
mov dword [esp + 0x64], ecx
call edx
add esp, 4
cmp byte [ebp + 0x2bc], 0
jne 0x485a10
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + 0x54]
mov ecx, eax
add eax, 4
movsx ebx, ax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x1c], ecx
xor ecx, ecx
push ecx
push ebx
push ecx
mov word [esp + 0x5e], ax
mov word [esp + 0x5c], ax
mov eax, dword [esp + 0x38]
push 8
push eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x60], ebx
call fcn.00443590
add esp, 0x18
cmp dword [esp + 0x10], 0
mov esi, eax
jne 0x4859dc
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push 0
push ebx
push 0
push 1
push edx
call fcn.00443590
add esp, 0x18
cmp dword [esp + 0x10], 0
mov ebp, eax
jne 0x4859dc
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push 0
push ebx
push 0
push 2
push ecx
call fcn.00443590
add esp, 0x18
cmp dword [esp + 0x10], 0
jne 0x4859dc
xor edx, edx
xor ecx, ecx
cmp dx, word [esp + 0x18]
jge 0x48588a
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x58]
add edx, 0xc
mov dword [esp + 0x20], edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x38], eax
mov edx, esi
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx - 4]
mov dword [edx], ebx
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx]
add dword [esp + 0x20], 0x20
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x40]
inc dword [esp + 0x40]
mov byte [ebx], 1
mov ebx, dword [esp + 0x38]
add dword [esp + 0x38], 2
mov word [ebx], cx
inc ecx
add edx, 8
cmp cx, word [esp + 0x18]
jl 0x485851
mov ebx, dword [edi + 0x44]
movsx edx, cx
mov dword [esi + edx*8], ebx
mov ebx, dword [edi + 0x48]
mov dword [esi + edx*8 + 4], ebx
mov byte [edx + ebp], 1
mov word [eax + edx*2], cx
mov ebx, dword [edi + 0x4c]
inc ecx
movsx edx, cx
mov dword [esi + edx*8], ebx
mov ebx, dword [edi + 0x50]
mov dword [esi + edx*8 + 4], ebx
mov byte [edx + ebp], 1
mov word [eax + edx*2], cx
mov ebx, dword [edi + 0xb4]
inc ecx
movsx edx, cx
mov dword [esi + edx*8], ebx
mov ebx, dword [edi + 0xb8]
mov dword [esi + edx*8 + 4], ebx
mov byte [edx + ebp], 1
mov word [eax + edx*2], cx
mov ebx, dword [edi + 0xbc]
inc ecx
movsx edx, cx
mov dword [esi + edx*8], ebx
mov ebx, dword [edi + 0xc0]
mov dword [esi + edx*8 + 4], ebx
mov ebx, dword [esp + 0x44]
mov byte [edx + ebp], 1
mov word [eax + edx*2], cx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x50]
push ecx
push edx
push ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ebp
call fcn.0047ccd0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4859dc
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x58]
xor ebp, ebp
xor ecx, ecx
cmp bp, dx
jge 0x48596f
movzx edx, dx
mov ebp, edx
add eax, 8
mov ecx, esi
mov dword [esp + 0x2c], ebp
nop
test byte [eax - 4], 2
je 0x485962
movsx ebp, word [ecx]
mov dword [eax], ebp
movsx ebp, word [ecx + 4]
mov dword [eax + 4], ebp
add ecx, 8
add eax, 0x20
dec edx
jne 0x485950
mov ecx, dword [esp + 0x2c]
movsx eax, cx
mov ecx, dword [esi + eax*8]
mov dword [edi + 0x44], ecx
mov edx, dword [esi + eax*8 + 4]
mov dword [edi + 0x48], edx
mov ecx, dword [esi + eax*8 + 8]
mov dword [edi + 0x4c], ecx
mov edx, dword [esi + eax*8 + 0xc]
mov dword [edi + 0x50], edx
mov ecx, dword [esi + eax*8 + 0x10]
mov dword [edi + 0xb4], ecx
mov edx, dword [esi + eax*8 + 0x14]
mov dword [edi + 0xb8], edx
mov ecx, dword [esi + eax*8 + 0x18]
mov dword [edi + 0xbc], ecx
mov edx, dword [esi + eax*8 + 0x1c]
mov dword [edi + 0xc0], edx
test byte [ebx + 0x2c0], 2
jne 0x4859c7
mov eax, dword [edi + 0x4c]
sub eax, dword [edi + 0x44]
mov dword [edi + 0x3c], eax
test byte [ebx + 0x2c0], 0x10
jne 0x4859dc
sub ecx, dword [edi + 0xb4]
mov dword [edi + 0xb0], ecx
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x28]
push edx
push esi
call fcn.0043fac0
mov eax, dword [esp + 0x5c]
push eax
push esi
call fcn.0043fac0
mov ecx, dword [esp + 0x68]
push ecx
push esi
call fcn.0043fac0
mov eax, dword [esp + 0x28]
add esp, 0x18
test eax, eax
jne 0x485edb
test byte [edi + 0x10], 1
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
jne 0x485a8b
mov edx, dword [edi + 0x44]
push esi
push edx
call fcn.00479ad0
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0x4c]
push esi
push eax
call fcn.00479ad0
mov ecx, dword [edi + 0xb4]
push esi
push ecx
mov dword [edi + 0x4c], eax
call fcn.00479ad0
mov ebp, dword [esp + 0x4c]
mov edx, dword [edi + 0xb8]
push ebp
push edx
mov dword [edi + 0xb4], eax
call fcn.00479ad0
mov dword [edi + 0xb8], eax
mov eax, dword [edi + 0xbc]
push esi
push eax
call fcn.00479ad0
mov ecx, dword [edi + 0xc0]
push ebp
push ecx
mov dword [edi + 0xbc], eax
call fcn.00479ad0
add esp, 0x30
mov dword [edi + 0xc0], eax
test dword [edi + 0x10], 0x400
push ebx
je 0x485aa9
call fcn.0043c980
mov edx, dword [edi + 8]
mov dword [edx + 0x48], 0x636f6d70
jmp 0x485ed4
mov eax, dword [esp + 0x28]
mov ebp, dword [ebx + 0x54]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
mov esi, dword [ebx + 0x30]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], edx
call fcn.0043c980
add esp, 4
mov dword [esp + 0x34], 0
test ebp, ebp
je 0x485c47
mov eax, dword [esp + 0x3c]
inc eax
shl esi, 5
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], esi
lea esp, [esp]
mov edx, dword [edi + 0x50]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x34]
add eax, dword [esp + 0x20]
movsx ecx, word [ecx + 0x16]
mov eax, dword [eax]
mov dword [esp + 0xa0], edx
mov edx, dword [edi + 0xb4]
mov esi, dword [edi + 0x44]
mov ebp, dword [edi + 0x48]
mov ebx, dword [edi + 0x4c]
mov dword [esp + 0xa4], edx
mov edx, dword [edi + 0xb8]
mov dword [esp + 0xa8], edx
mov edx, dword [edi + 0xbc]
mov dword [esp + 0xac], edx
mov edx, dword [edi + 0xc0]
mov dword [esp + 0xb0], edx
mov edx, dword [edi + 0x3c]
mov dword [esp + 0x48], edx
mov edx, dword [edi + 0xb0]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x2c]
push 0
push edx
push eax
push edi
mov dword [esp + 0x4c], ecx
call fcn.00485470
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x485edb
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x34]
add ecx, dword [esp + 0x20]
mov edx, 0x200
mov dword [esp + 0x18], ecx
test word [ecx + 4], dx
jne 0x485bfc
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov dword [edi + 0x50], ecx
mov ecx, dword [esp + 0xa8]
mov dword [edi + 0xb4], edx
mov edx, dword [esp + 0xac]
mov dword [edi + 0xb8], ecx
mov ecx, dword [esp + 0xb0]
mov dword [edi + 0xbc], edx
mov edx, dword [esp + 0x48]
mov dword [edi + 0xc0], ecx
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x44], esi
mov dword [edi + 0x48], ebp
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x3c], edx
mov dword [edi + 0xb0], ecx
mov edx, dword [esp + 0x1c]
movsx esi, word [edx + 0x16]
cmp esi, dword [esp + 0x3c]
je 0x485c2d
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edi
call fcn.0047a0f0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x485edb
mov ecx, dword [esp + 0x34]
add dword [esp + 0x20], 0x20
inc ecx
mov dword [esp + 0x34], ecx
cmp ecx, dword [esp + 0x40]
jb 0x485b00
jmp 0x485c4f
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
test byte [edi + 0x10], 2
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x18], edx
mov edx, dword [esp + 0x60]
mov dword [edi + 0x1c], ecx
mov dword [edi + 0xa4], edx
jne 0x485edb
mov edx, dword [esp + 0x18]
mov ecx, 0x100
test word [edx + 4], cx
je 0x485edb
cmp esi, dword [esp + 0x24]
jbe 0x485edb
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edi
call fcn.00485220
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x485edb
mov eax, 0x14
jmp 0x485ebc
xor ebp, ebp
push ebx
mov dword [edi + 0x24], ebp
mov dword [edi + 0x2c], ebp
mov dword [edi + 0x28], ebp
mov dword [edi + 0x30], ebp
call fcn.00479bc0
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebp
jne 0x485ec0
cmp byte [esp + 0xd0], 0
jne 0x485ec0
mov ecx, edi
call fcn.0047a2d0
push ebx
mov esi, edi
call fcn.00479c70
mov eax, dword [edi]
add esp, 4
cmp byte [eax + 0x2bc], 0
jne 0x485e43
mov ecx, dword [edi + 0x48]
mov edx, dword [edi + 0x44]
mov dword [esp + 0x98], ecx
mov ecx, dword [edi + 0x50]
mov dword [esp + 0xa0], ecx
mov ecx, dword [edi + 0xb8]
mov dword [esp + 0x94], edx
mov edx, dword [edi + 0x4c]
mov dword [esp + 0xa8], ecx
mov ecx, dword [edi + 0xc0]
mov dword [esp + 0x9c], edx
mov edx, dword [edi + 0xb4]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xa4], edx
mov edx, dword [edi + 0xbc]
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], ecx
push 4
mov dword [esp + 0xb0], edx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x9c]
mov dword [esp + 0x58], edx
lea edx, [esp + 0xbc]
push ebx
push eax
mov dword [esp + 0x34], 0x1010101
mov dword [esp + 0xc4], 0x10000
mov dword [esp + 0xc8], 0x30002
mov dword [esp + 0x5c], 0x40004
mov dword [esp + 0x68], edx
call fcn.0047ccd0
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, ebp
jne 0x485ec0
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0xa0]
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
mov ebx, dword [esp + 0xa4]
mov dword [edi + 0x48], edx
mov edx, dword [esp + 0xa8]
mov dword [edi + 0xb8], edx
mov edx, dword [esp + 0xb0]
mov dword [edi + 0x50], ecx
mov ecx, dword [esp + 0xac]
mov dword [edi + 0xc0], edx
mov edx, dword [edi]
mov dword [edi + 0x44], esi
mov dword [edi + 0x4c], eax
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xbc], ecx
test byte [edx + 0x2c0], 2
jne 0x485e32
sub eax, esi
mov dword [edi + 0x3c], eax
test byte [edx + 0x2c0], 0x10
jne 0x485e43
sub ecx, ebx
mov dword [edi + 0xb0], ecx
test byte [edi + 0x10], 1
jne 0x485eba
mov esi, dword [esp + 0x30]
mov eax, dword [edi + 0x44]
push esi
push eax
call fcn.00479ad0
mov ecx, dword [edi + 0x4c]
push esi
push ecx
mov dword [edi + 0x44], eax
call fcn.00479ad0
mov edx, dword [edi + 0xb4]
push esi
push edx
mov dword [edi + 0x4c], eax
call fcn.00479ad0
mov ebx, dword [esp + 0x4c]
mov dword [edi + 0xb4], eax
mov eax, dword [edi + 0xb8]
push ebx
push eax
call fcn.00479ad0
mov ecx, dword [edi + 0xbc]
push esi
push ecx
mov dword [edi + 0xb8], eax
call fcn.00479ad0
mov edx, dword [edi + 0xc0]
push ebx
push edx
mov dword [edi + 0xbc], eax
call fcn.00479ad0
add esp, 0x30
mov dword [edi + 0xc0], eax
xor eax, eax
mov dword [esp + 0x10], eax
cmp byte [esp + 0x16], 0
je 0x485edb
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp + 0x20c]
push edi
call eax
mov eax, dword [esp + 0x14]
add esp, 4
cmp byte [esp + 0x17], 0
je 0x485f06
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 0x80]
mov eax, dword [edx + 0x34]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x64]
push edx
push eax
call ecx
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00493576
add esp, 0xb0
ret