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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [esp + 4], eax
xor eax, eax
push ebx
push esi
mov esi, dword [ecx]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esp + 0x18], esi
test eax, eax
je 0x485de6
cmp dword [eax], 0x40
jl 0x485de6
xor eax, eax
mov dword [ebp + 0x14], eax
mov dword [esp + 0x68], eax
test byte [esi + 0x3c], 0x20
je 0x485df7
and dword [ebp + 0x1c], 0xfbff
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
cmp edx, 0x40
jle 0x485e1a
push 0x40
push 0x552530
push ecx
call fcn.0041ad80
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
and eax, 0x40
mov dword [esp + 0x3c], eax
je 0x485e31
mov ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x485e37
mov dword [esp + 0x14], edx
mov ebx, edx
lea eax, [ebx + ebx*4]
shl eax, 4
add eax, 0x2e7
and eax, 0xfffffff8
xor ecx, ecx
mov dword [esp + 0x4c], eax
add eax, 0x48
push ecx
push eax
mov dword [esp + 0x60], eax
call fcn.004184b0
mov edi, eax
add esp, 8
mov dword [esp + 0x50], edi
test edi, edi
je 0x485e76
mov eax, dword [esp + 0x58]
push eax
push 0
push edi
call fcn.004f8f00
add esp, 0xc
cmp byte [esi + 0x41], 0
je 0x485e8e
mov eax, edi
mov ecx, esi
call fcn.00418230
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
mov dword [edi], ecx
mov ecx, dword [ebp + 0x18]
mov dword [edi + 0x40], eax
mov dword [edi + 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x10]
mov dword [edi + 0xc], ecx
mov byte [edi + 0x29], bl
mov dword [edi + 8], eax
mov eax, dword [edx + 0x18]
mov ebx, dword [eax + 0x6c]
lea edx, [ebx - 1]
lea ecx, [ebx + 1]
mov dword [esp + 0x30], eax
mov dword [eax + 0x6c], ecx
test ebx, edx
jne 0x485ef0
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx]
lea eax, [ebx*8 + 4]
push 0
push eax
mov eax, dword [ecx + 0x70]
call fcn.00418620
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x70], eax
add esp, 8
mov eax, ecx
mov eax, dword [eax + 0x70]
test eax, eax
je 0x485efe
mov dword [eax + ebx*4], 0xffffffff
mov dx, word [ebp + 0x1c]
mov word [edi + 0x22], dx
mov edx, dword [esp + 0x4c]
or eax, 0xffffffff
sub eax, ebx
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a4]
mov dword [edi + 0x38], ecx
lea eax, [edi + edx]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], edi
lea esi, [edi + 0x148]
mov dword [esp + 0x64], esi
lea ecx, [eax + 0x38]
mov dword [eax + 0x30], ecx
mov ecx, 3
mov word [eax + 0x2c], cx
xor ecx, ecx
mov dword [eax + 0x24], ecx
xor edx, edx
mov word [eax + 0x28], dx
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x44], ecx
push 0x48
push eax
lea edx, [esi + 0x18]
push esi
mov dword [esp + 0x64], esi
mov dword [esi], edi
mov dword [esi + 4], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 8
mov dword [esi + 0x14], edx
call fcn.00480a70
mov ecx, dword [esp + 0x70]
add esp, 0xc
cmp dword [ecx + 0xc], 0
mov dword [esp + 0x30], 0
jle 0x486049
xor ebx, ebx
cmp dword [esp + 0x14], 0
je 0x486008
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + ebx]
xor eax, eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], eax
push edx
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x90], 2
mov dword [esp + 0x7c], 0x44b490
mov dword [esp + 0x80], 0x44b5a0
call fcn.00447540
add esp, 8
cmp byte [esp + 0x88], 0
je 0x486030
mov ecx, dword [esp + 0x64]
mov edx, dword [edi + 0x34]
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + ebx]
push 0x10
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.0044ec20
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x14]
lea eax, [ecx + ebx + 0x14]
add esp, 0x10
or word [eax], 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x64]
inc eax
add ebx, 0x30
mov dword [esp + 0x30], eax
cmp eax, dword [ecx + 0xc]
jl 0x485f93
cmp dword [esp + 0x14], 0
jne 0x486069
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x48605c
mov dl, byte [eax]
mov byte [edi + 0x24], dl
test dword [ebp + 0x1c], 0x400
je 0x486069
mov byte [edi + 0x28], 1
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [eax], ecx
jle 0x48609d
mov edx, eax
add edx, 0x38
mov dword [esp + 0x30], edx
jmp 0x486080
mov ebx, dword [esp + 0x30]
mov edx, dword [edi + 0x44]
mov ebx, dword [ebx]
mov eax, dword [ebp + 0xc]
add dword [esp + 0x30], 0x50
mov dword [edi + edx*4 + 0x48], ebx
inc dword [edi + 0x44]
inc ecx
cmp ecx, dword [eax]
jl 0x486080
mov ebx, dword [esi + 0xc]
dec ebx
js 0x4860b4
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push ecx
call fcn.00480100
add esp, 0xc
dec ebx
jns 0x4860a3
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x41], 0
jne 0x486158
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
and eax, 0x400
mov dword [esp + 0x48], eax
je 0x486100
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
mov eax, dword [ebp + 0xc]
call fcn.00481670
add esp, 0xc
test eax, eax
je 0x4860ee
mov byte [edi + 0x28], 1
jmp 0x486100
cmp dword [ebp + 0x14], 0
jne 0x486100
mov ecx, 0x200
or word [edi + 0x22], cx
mov dword [edi + 8], ebx
cmp dword [esp + 0x14], 1
jne 0x486114
lea ecx, [esp + 0x60]
call fcn.00485ba0
test eax, eax
jne 0x486178
lea edx, [esp + 0x60]
push edx
call fcn.00484b50
add esp, 4
test eax, eax
jne 0x486158
push eax
push edi
call fcn.00485340
mov esi, dword [esp + 0x20]
add esp, 8
cmp byte [esi + 0x41], 0
jne 0x486158
cmp dword [edi + 8], 0
je 0x486182
mov ax, word [edi + 0x20]
inc ax
movzx ecx, ax
push ecx
push edi
call fcn.00485340
add esp, 8
cmp byte [esi + 0x41], 0
je 0x48617c
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1a4], eax
mov eax, dword [esp + 0x18]
mov ebx, edi
call fcn.00482d80
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x486194
test dword [esi + 0x18], 0x20000
je 0x486194
or eax, 0xffffffff
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x40], 0
jne 0x486158
cmp byte [esi + 0x41], 0
jne 0x486158
cmp byte [edi + 0x29], 2
jb 0x4862ac
test ebx, ebx
je 0x4862ac
mov ecx, dword [esp + 0x18]
mov eax, 0x400
test word [ecx + 0x3c], ax
jne 0x4862ac
push ebx
lea esi, [edi + 0x44]
push esi
call fcn.00480d60
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x70]
add esp, 8
mov dword [esp + 0x44], edx
test eax, eax
je 0x4861f7
push eax
push esi
call fcn.00480d60
or dword [esp + 0x48], eax
add esp, 8
or dword [esp + 0x44], edx
cmp byte [edi + 0x29], 2
jb 0x4862ac
mov bl, byte [edi + 0x29]
mov edx, dword [edi + 4]
movzx eax, bl
lea eax, [eax + eax*4 + 0x2d]
add eax, eax
mov eax, dword [edi + eax*8]
movzx ecx, byte [eax + 0x10]
lea ecx, [ecx + ecx*4]
add ecx, ecx
test byte [edx + ecx*8 + 0x2c], 8
je 0x4862ac
cmp word [esp + 0x48], 0
jne 0x486238
test dword [eax + 0x24], 0x1000
je 0x4862ac
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov eax, edx
and eax, dword [esp + 0x40]
mov dword [esp + 0x34], ecx
and ecx, dword [esp + 0x44]
mov dword [esp + 0x30], edx
or eax, ecx
jne 0x4862ac
mov eax, dword [esp + 0x64]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
lea esi, [esi + esi*2]
shl esi, 4
add esi, ecx
cmp ecx, esi
jae 0x48629a
mov ebx, dword [esp + 0x34]
jmp 0x486274
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x28]
and eax, edx
mov edx, dword [ecx + 0x2c]
and edx, ebx
or eax, edx
je 0x48628a
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x486293
add ecx, 0x30
cmp ecx, esi
jb 0x486270
jmp 0x486297
cmp ecx, esi
jb 0x4862ac
mov bl, byte [edi + 0x29]
dec dword [esp + 0x14]
dec bl
mov byte [edi + 0x29], bl
cmp bl, 2
jae 0x486201
movsx ecx, word [edi + 0x20]
mov eax, dword [edi]
add dword [eax + 0x1a4], ecx
test byte [ebp + 0x1c], 4
je 0x4862e1
mov eax, dword [edi + 0x320]
test dword [eax + 0x24], 0x1000
je 0x4862e1
mov edx, dword [ebp + 0xc]
mov byte [edi + 0x26], 1
mov ecx, dword [edx + 0x18]
test byte [ecx + 0x2a], 0x20
jne 0x4862e1
and dword [eax + 0x24], 0xffffffbf
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4866e5
lea edx, [edi + 0x320]
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 0x14]
mov edx, dword [ebp + 0xc]
lea ecx, [eax + eax*4]
add ecx, ecx
mov ebx, dword [edx + ecx*8 + 0x18]
lea eax, [edx + ecx*8 + 8]
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x2c], eax
mov eax, 0xfff0bdc0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x48637a
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + 0x14]
xor eax, eax
mov edx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edx
test esi, esi
jle 0x48637a
mov ecx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x48]
add ecx, 0xc
jmp 0x486360
cmp dword [ecx], ebx
je 0x48636e
inc eax
add ecx, 0x10
rol edx, 1
cmp eax, esi
jl 0x486360
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x20]
mov cl, byte [ebx + 0x2a]
mov esi, dword [edx]
mov dword [esp + 0x48], esi
test cl, 2
jne 0x486526
cmp dword [ebx + 0xc], 0
jne 0x486526
mov esi, dword [esi + 0x24]
mov dword [esp + 0x40], esi
test esi, 0x400
je 0x486483
mov eax, dword [esp + 0x28]
mov ebx, dword [eax + 0x38]
xor ecx, ecx
cmp ebx, ecx
je 0x4863cb
mov eax, dword [esp + 0x18]
mov edi, edi
cmp dword [ebx], eax
je 0x4863cb
mov ebx, dword [ebx + 0x18]
cmp ebx, ecx
jne 0x4863c0
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x20]
mov edx, dword [eax + 0x18]
cmp dword [edx + 0x54], esi
jg 0x4863ff
push eax
call fcn.00436c80
add esp, 4
test eax, eax
je 0x4863f9
mov eax, 1
jmp 0x486426
mov eax, dword [esp + 0x10]
xor ecx, ecx
inc dword [eax + 0x20]
mov eax, dword [eax + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x40]
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x98
mov eax, esi
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 4]
mov edx, dword [ecx]
test esi, esi
je 0x486526
cmp byte [edx + 0x41], 0
jne 0x486526
test eax, eax
jns 0x48644b
mov eax, ecx
mov eax, dword [eax + 0x20]
dec eax
lea ecx, [eax + eax*4]
movsx eax, byte [esi + ecx*4 + 1]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 0x10]
call fcn.00437440
mov dword [esi + 0x10], 0
test ebx, ebx
jne 0x486474
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x486526
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xf6
inc dword [ebx + 0xc]
jmp 0x486526
test cl, 0x10
jne 0x486526
test byte [esp + 0x40], 0x40
jne 0x486511
test byte [ebp + 0x1c], 0x10
jne 0x486511
cmp byte [edi + 0x26], 0
mov esi, dword [esp + 0x2c]
mov ecx, 0x36
je 0x4864b3
mov edx, dword [esi + 0x30]
mov ecx, 0x37
mov dword [edi + 0x3c], edx
push ecx
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [esi + 0x30]
push eax
push ecx
mov eax, ebx
call fcn.00462060
add esp, 0x10
cmp byte [edi + 0x26], 0
jne 0x486526
cmp word [ebx + 0x22], 0x40
jge 0x486526
test byte [ebx + 0x2a], 0x20
jne 0x486526
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov edx, eax
xor edi, edi
or edx, ecx
je 0x4864f5
shrd eax, ecx, 1
shr ecx, 1
mov edx, eax
inc edi
or edx, ecx
jne 0x4864e8
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x20]
push ecx
dec eax
mov ecx, 0xfffffff2
call fcn.00437690
mov edi, dword [esp + 0x54]
add esp, 4
jmp 0x486526
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x1c]
push ecx
push 0
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.00453410
add esp, 0x10
mov eax, dword [esp + 0x48]
test dword [eax + 0x24], 0x200
je 0x486689
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0x28]
test byte [eax + 0x2a], 0x20
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], 0x36
je 0x486574
mov edx, dword [ecx + 0x34]
and dl, 3
cmp dl, 2
jne 0x486574
cmp word [esp + 0x3c], 0
je 0x486574
mov eax, dword [esp + 0x20]
mov esi, dword [eax - 0x3c]
mov dword [esp + 0x24], 0
jmp 0x4865d4
cmp byte [edi + 0x26], 0
mov esi, dword [ebp + 0x20]
je 0x4865a9
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x48659c
jmp 0x486590
cmp eax, ecx
je 0x48659c
mov eax, dword [eax + 0x14]
inc esi
test eax, eax
jne 0x486590
mov dword [esp + 0x24], 0x37
mov dword [edi + 0x40], esi
jmp 0x4865d4
test esi, esi
je 0x4865c8
cmp word [esp + 0x3c], 0
je 0x4865c8
test dword [ebp + 0x1c], 0x1000
je 0x4865d4
mov dword [esp + 0x24], 0x35
jmp 0x4865d4
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x44]
lea ecx, [esi + 1]
mov dword [eax + 0x44], ecx
cmp dword [esp + 0x24], 0
mov edx, dword [esp + 0x20]
mov dword [edx - 0x38], esi
je 0x486689
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 0x20]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x2c], ecx
cmp dword [edx + 0x54], ebx
jg 0x486611
push eax
call fcn.00436c80
add esp, 4
test eax, eax
jne 0x486645
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
inc dword [eax + 0x20]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov cl, byte [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x1c]
mov byte [eax], cl
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
jmp 0x486649
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov eax, dword [ebp + 8]
call fcn.00437770
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x24]
test al, 0xf
je 0x48668d
test eax, 0x8002
jne 0x48668d
test byte [edi + 0x22], 1
jne 0x48668d
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x48668d
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 2
jmp 0x48668d
mov esi, dword [esp + 0x1c]
test esi, esi
js 0x4866d6
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x4866a0
mov ebx, eax
mov ecx, dword [ebx + 0x14c]
mov eax, dword [esp + 0x30]
test ecx, eax
jne 0x4866d6
mov edx, dword [ebx]
or eax, ecx
mov dword [ebx + 0x14c], eax
mov eax, dword [edx + 0x10]
mov ecx, esi
add ecx, ecx
mov ecx, dword [eax + ecx*8 + 0xc]
mov edx, dword [ecx]
mov dword [ebx + esi*4 + 0x150], edx
cmp esi, 1
jne 0x4866d6
call fcn.004593a0
add dword [esp + 0x20], 0x50
dec dword [esp + 0x4c]
jne 0x4862fb
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x18]
mov dword [edi + 0x2c], ecx
cmp byte [edx + 0x41], 0
jne 0x486158
or eax, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
cmp dword [esp + 0x14], ebx
jle 0x4867b5
lea esi, [edi + 0x30c]
mov eax, dword [esi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x486763
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
lea ecx, [esi - 0x2c]
push ecx
push edx
mov edx, dword [ebp + 0xc]
push eax
movzx eax, byte [esi]
lea ecx, [eax + eax*4]
add ecx, ecx
lea eax, [edx + ecx*8 + 8]
mov ecx, dword [esp + 0x64]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.00481860
mov eax, dword [esp + 0x30]
add esp, 0x18
cmp byte [eax + 0x41], 0
jne 0x486158
movzx edx, byte [esi]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ebx
lea edx, [esi - 0x2c]
push eax
call fcn.0047cf10
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x20]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push eax
push ecx
push ebx
push edi
mov dword [esi - 0xc], edx
call fcn.0047d930
mov dword [esp + 0x74], edx
mov edx, dword [esi - 0x14]
inc ebx
add esp, 0x20
add esi, 0x50
mov dword [esp + 0x50], eax
mov dword [edi + 0x30], edx
cmp ebx, dword [esp + 0x14]
jl 0x48671a
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret