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

Disassembly:
push 0xffffffffffffffff
push 0x4cd20b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4f87d8]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f87d8]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
mov ebx, dword [ebp + 8]
sub ebx, dword [ebp]
mov dword [esp + 0x38], eax
xor edi, edi
mov eax, edx
mov dword [esp + 0x3c], edx
mov byte [esp + 0x1b], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], edi
mov word [esp + 0xa4], di
lea ecx, [eax + 2]
mov si, word [eax]
add eax, 2
cmp si, di
jne 0x482091
sub eax, ecx
sar eax, 1
push eax
push edx
lea esi, [esp + 0xa8]
call fcn.00405810
mov dword [esp + 0xc8], edi
mov ecx, dword [ebp]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, ecx
and eax, 4
mov dword [esp + 0x50], edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x7c], eax
jne 0x48210c
test cl, 1
jne 0x48210c
test ecx, 0x400
je 0x4823d9
mov ebx, dword [esp + 0x24]
xor edi, edi
test ecx, 0x400
je 0x482120
cmp ebx, edi
jne 0x482120
mov dword [esp + 0x24], 0x270f
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0xc8], 1
push 2
push 0x4e4604
lea esi, [esp + 0x8c]
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], edi
mov word [esp + 0x90], di
call fcn.00405810
mov edx, esi
push edx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 2
call fcn.004289d0
add esp, 8
mov byte [esp + 0xc8], 1
cmp dword [esp + 0x9c], 8
jb 0x4821aa
mov ecx, dword [esp + 0x88]
push ecx
call fcn.004a85e6
add esp, 4
mov esi, dword [esp + 0x2c]
cmp esi, edi
jne 0x4821b6
xor eax, eax
jmp 0x4821cf
mov ecx, dword [esp + 0x30]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x48], edi
jbe 0x482308
mov dword [esp + 0x20], 0
test esi, esi
je 0x48220d
mov ecx, dword [esp + 0x30]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x48], eax
jb 0x482216
call fcn.004a8d14
mov esi, dword [esp + 0x2c]
test esi, esi
mov ebx, dword [esp + 0x20]
mov edi, dword [esi + ebx + 0x14]
mov dword [esp + 0x1c], edi
je 0x482245
mov ecx, dword [esp + 0x30]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x48], eax
jb 0x48224e
call fcn.004a8d14
mov esi, dword [esp + 0x2c]
cmp dword [esi + ebx + 0x18], 8
jb 0x48225b
mov ebx, dword [esi + ebx + 4]
jmp 0x48225f
lea ebx, [esi + ebx + 4]
test edi, edi
je 0x4822eb
mov ecx, dword [esp + 0x24]
lea eax, [ecx + 1]
xor esi, esi
cmp eax, ecx
jle 0x4822b6
mov edi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x1c]
jae 0x4822b6
mov eax, dword [esp + 0x38]
push 0x400
lea edx, [esp + 0x60]
push edx
push edi
push ebx
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 8]
sub eax, dword [esp + 0x5c]
sub ecx, dword [ebp]
cmp eax, ecx
setle byte [esp + 0x1b]
add esi, 1
sub edi, 1
cmp eax, dword [esp + 0x24]
jg 0x482278
mov ecx, dword [esp + 0x68]
sub ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x1c]
add ecx, dword [esp + 0xdc]
sub esi, 1
add dword [esp + 0x40], ecx
sub edx, esi
cmp dword [esp + 0x44], eax
lea ebx, [ebx + edx*2]
mov dword [esp + 0x1c], esi
jg 0x4822e3
mov dword [esp + 0x44], eax
test esi, esi
jne 0x482267
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
add dword [esp + 0x20], 0x1c
add eax, 1
cmp eax, dword [esp + 0x80]
mov dword [esp + 0x48], eax
jb 0x4821ea
xor edi, edi
cmp dword [esp + 0x7c], edi
je 0x482331
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
and dword [esp + 0xd8], 0xfffffffb
sub eax, ecx
sub eax, dword [esp + 0x40]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x50], ecx
mov ebx, dword [esp + 0xd8]
test bl, 1
je 0x482360
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
sub eax, ecx
sub eax, dword [esp + 0x44]
and ebx, 0xfffffffe
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0xd8], ebx
mov dword [esp + 0x4c], ecx
test ebx, 0x400
je 0x4823ad
cmp esi, edi
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
je 0x48239c
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x30]
push ecx
mov eax, esi
call fcn.00406290
mov edx, dword [esp + 0x30]
add esp, 4
push edx
call fcn.004a85e6
add esp, 4
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
jmp 0x482711
cmp esi, edi
mov byte [esp + 0xc8], 0
je 0x4823d9
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x30]
push ecx
mov eax, esi
call fcn.00406290
mov edx, dword [esp + 0x30]
add esp, 4
push edx
call fcn.004a85e6
add esp, 4
mov eax, dword [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4823e0
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x40]
push eax
lea esi, [esp + 0xa8]
call fcn.00405810
xor ebp, ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov byte [esp + 0xc8], 3
push 2
push 0x4e4604
lea esi, [esp + 0x8c]
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], ebp
mov word [esp + 0x90], bp
call fcn.00405810
mov ecx, esi
push ecx
lea edx, [esp + 0xa4]
push edx
lea ecx, [esp + 0x74]
mov byte [esp + 0xd0], 4
call fcn.004289d0
add esp, 8
cmp dword [esp + 0x9c], 8
jb 0x48247d
mov eax, dword [esp + 0x88]
push eax
call fcn.004a85e6
add esp, 4
mov ebx, dword [esp + 0x70]
cmp ebx, ebp
jne 0x482489
xor eax, eax
jmp 0x4824a2
mov ecx, dword [esp + 0x74]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], edi
jbe 0x4826bd
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x1c], ebp
lea esp, [esp]
cmp ebx, ebp
je 0x4824e1
mov esi, dword [esp + 0x74]
sub esi, ebx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4824ee
call fcn.004a8d14
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x1c]
cmp dword [ebx + edx + 0x18], 8
jb 0x482501
mov eax, edx
mov ebp, dword [ebx + eax + 4]
jmp 0x482509
mov edx, dword [esp + 0x1c]
lea ebp, [ebx + edx + 4]
test ebx, ebx
je 0x48252a
mov esi, dword [esp + 0x74]
sub esi, ebx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x482537
call fcn.004a8d14
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x1c]
mov edi, dword [ebx + eax + 0x14]
test edi, edi
je 0x48262c
mov edx, dword [esp + 0x24]
lea eax, [edx + 1]
xor esi, esi
cmp eax, edx
jle 0x482589
mov ebx, edi
cmp esi, edi
jae 0x482585
mov edx, dword [esp + 0x38]
push 0x400
lea ecx, [esp + 0x60]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
add esi, 1
sub ebx, 1
cmp eax, dword [esp + 0x24]
jg 0x482556
mov ecx, dword [esp + 0x68]
sub ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x50]
add ecx, dword [esp + 0xdc]
lea eax, [edx + ecx*2]
cmp eax, dword [esp + 0x58]
jg 0x48264b
mov ecx, dword [esp + 0xd8]
mov eax, dword [esp + 0x38]
mov ebx, dword [sym.imp.USER32.dll_DrawTextW]
or ecx, 0x20
push ecx
lea edx, [esp + 0x50]
push edx
sub esi, 1
sub edi, esi
push edi
push ebp
push eax
call ebx
mov edx, dword [esp + 0x38]
push 0xc00
lea ecx, [esp + 0x2c]
push ecx
push edi
xor eax, eax
push ebp
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
sub eax, dword [esp + 0x28]
lea ebp, [ebp + edi*2]
cmp eax, ecx
mov ecx, dword [esp + 0x68]
setle byte [esp + 0x1b]
mov edx, ecx
sub edx, dword [esp + 0x60]
mov edi, esi
add edx, dword [esp + 0xdc]
add dword [esp + 0x50], edx
test esi, esi
jne 0x482547
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x20]
add dword [esp + 0x1c], 0x1c
add eax, 1
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jae 0x4826bd
xor ebp, ebp
mov edi, eax
jmp 0x4824c0
mov eax, dword [esp + 0xd8]
mov ebx, dword [esp + 0x38]
mov esi, dword [sym.imp.USER32.dll_DrawTextW]
or eax, 0x8020
push eax
lea eax, [esp + 0x50]
push eax
push edi
push ebp
push ebx
call esi
push 0xc00
lea ecx, [esp + 0x88]
push ecx
push edi
xor eax, eax
push ebp
push ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
call esi
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x54]
sub edx, dword [esp + 0x84]
sub eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x70]
cmp edx, eax
setle byte [esp + 0x1b]
xor ebp, ebp
cmp ebx, ebp
je 0x482705
mov edi, dword [esp + 0x74]
cmp ebx, edi
je 0x4826fc
lea esi, [ebx + 0x18]
mov edi, edi
cmp dword [esi], 8
jb 0x4826e1
mov ecx, dword [esi - 0x14]
push ecx
call fcn.004a85e6
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebp
mov word [esi - 0x14], bp
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x4826d0
mov ebx, dword [esp + 0x70]
push ebx
call fcn.004a85e6
add esp, 4
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
cmp dword [esp + 0xb8], 8
jb 0x48272b
mov eax, dword [esp + 0xa4]
push eax
call fcn.004a85e6
add esp, 4
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004a85d7
add esp, 0xb8
ret