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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bcf18
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0xac]
mov eax, dword [ebx + 0xa8]
mov edx, dword [ebx + 0xb0]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0x1c8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xb4]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x20], eax
lea eax, [ecx - 0x7e]
mov dword [esp + 0x28], edx
cmp eax, 7
ja case.0x45b28f.127
jmp dword [eax*4 + 0x45ba8c]
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebx + 0x64c]
call fcn.00401a90
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
mov ecx, ebx
call edx
test eax, eax
je 0x45ba74
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0x4cbae4
push eax
call fcn.0049e2e5
mov eax, dword [esp + 0x40]
add esp, 0x14
cmp eax, 7
ja case.default.0x45b2f8
jmp dword [eax*4 + 0x45baac]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
mov eax, ecx
jl 0x45b31f
mov eax, esi
sub dword [ebx + 0xa8], eax
sub dword [ebx + 0xac], eax
add dword [ebx + 0xb0], eax
add dword [ebx + 0xb4], eax
jmp case.default.0x45b2f8
mov eax, dword [esp + 0x14]
sub dword [ebx + 0xac], eax
add dword [ebx + 0xb4], eax
jmp case.default.0x45b2f8
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
mov eax, ecx
jl 0x45b325
mov eax, esi
jmp 0x45b325
mov ecx, dword [esp + 0x18]
add dword [ebx + 0xb0], ecx
jmp case.default.0x45b2f8
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
mov eax, ecx
jl 0x45b32b
mov eax, esi
add dword [ebx + 0xb0], eax
add dword [ebx + 0xb4], eax
jmp case.default.0x45b2f8
mov edx, dword [esp + 0x14]
add dword [ebx + 0xb4], edx
jmp case.default.0x45b2f8
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
mov eax, ecx
jl 0x45b3d9
mov eax, esi
sub dword [ebx + 0xa8], eax
add dword [ebx + 0xb0], eax
add dword [ebx + 0xb4], eax
jmp case.default.0x45b2f8
mov eax, dword [esp + 0x18]
sub dword [ebx + 0xa8], eax
add dword [ebx + 0xb0], eax
cmp dword [ebx + 0xb0], 1
jl 0x45b6b1
mov eax, dword [ebx + 0xb4]
cmp eax, 1
jl 0x45b6b1
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jle 0x45b58a
push 0x4c3af6
lea ecx, [esp + 0x38]
call fcn.00408080
mov dword [esp + 0x78], 0
mov eax, dword [eax]
mov edx, dword [ebx]
push 0
push eax
mov eax, dword [edx + 0x64]
push 0x81
mov ecx, ebx
call eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], 0xffffffff
call fcn.00401a70
mov ecx, dword [0x4ee77c]
mov edi, dword [sym.imp.USER32.dll_GetDC]
push ecx
call edi
mov esi, eax
push 8
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call fcn.00447d50
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx]
mov edx, dword [eax + 0x88]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebx
call edx
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
cmp dword [esp + 0x50], eax
jg 0x45b501
cmp dword [ebx + 0xa8], 0
jl 0x45b50a
mov eax, dword [ebx + 0x1c8]
mov edx, dword [ebx]
mov edx, dword [edx + 0x94]
add eax, 8
push eax
mov ecx, ebx
call edx
mov eax, dword [0x4ee77c]
push eax
call edi
push 8
lea ecx, [esp + 0x50]
mov esi, eax
push ecx
mov ecx, esi
call fcn.00447d50
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebx]
mov edx, dword [edx + 0x88]
lea eax, [esp + 0x5c]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
cmp dword [esp + 0x50], eax
jle 0x45b4a4
cmp dword [ebx + 0xa8], 0
jge 0x45b543
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [ebx + 0xa8], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0xac], edx
mov edx, dword [ebx]
mov edx, dword [edx + 0x94]
mov dword [ebx + 0xb0], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0xb4], ecx
push eax
mov ecx, ebx
call edx
push 0x4c3af6
lea ecx, [esp + 0x40]
call fcn.00408080
mov dword [esp + 0x78], 1
mov eax, dword [eax]
mov edx, dword [ebx]
mov edx, dword [edx + 0x64]
push 0
push eax
push 0x81
mov ecx, ebx
call edx
lea ecx, [esp + 0x3c]
call fcn.00401a70
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
jge 0x45ba74
push 0x4c3af6
lea ecx, [esp + 0x44]
call fcn.00408080
mov dword [esp + 0x78], 2
mov eax, dword [eax]
mov edx, dword [ebx]
push 0
push eax
mov eax, dword [edx + 0x64]
push 0x81
mov ecx, ebx
call eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], 0xffffffff
call fcn.00401a70
mov ecx, dword [0x4ee77c]
mov edi, dword [sym.imp.USER32.dll_GetDC]
push ecx
call edi
mov esi, eax
push 0xfffffffffffffff8
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call fcn.00447d50
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx]
mov edx, dword [eax + 0x88]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebx
call edx
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
cmp dword [esp + 0x50], eax
jle 0x45b66a
nop
mov eax, dword [ebx + 0x1c8]
cmp eax, 0x10
jle 0x45b66a
mov edx, dword [ebx]
add eax, 0xfffffff8
push eax
mov eax, dword [edx + 0x94]
mov ecx, ebx
call eax
mov ecx, dword [0x4ee77c]
push ecx
call edi
mov esi, eax
push 0xfffffffffffffff8
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call fcn.00447d50
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx]
mov edx, dword [eax + 0x88]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebx
call edx
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
cmp dword [esp + 0x50], eax
jg 0x45b610
push 0x4c3af6
lea ecx, [esp + 0x48]
call fcn.00408080
mov dword [esp + 0x78], 3
mov eax, dword [eax]
mov edx, dword [ebx]
mov edx, dword [edx + 0x64]
push 0
push eax
push 0x81
mov ecx, ebx
call edx
lea ecx, [esp + 0x44]
call fcn.00401a70
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ebx + 0xa8], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xac], ecx
mov dword [ebx + 0xb0], edx
mov dword [ebx + 0xb4], eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
push 0x4cbae4
push ecx
call fcn.0049e2e5
mov edx, dword [esp + 0x4c]
add dword [ebx + 0xa8], edx
mov cl, byte [esp + 0x40]
mov esi, dword [ebx + 0xa8]
add esp, 0x14
test cl, 2
je 0x45b742
test edx, edx
je 0x45b742
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, eax
add eax, eax
add eax, eax
mov dword [ebx + 0xa8], eax
mov edx, dword [esp + 0x18]
add dword [ebx + 0xac], edx
mov eax, dword [ebx + 0xac]
test cl, 1
je 0x45b770
test edx, edx
je 0x45b770
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, eax
add eax, eax
add eax, eax
mov dword [ebx + 0xac], eax
push 0x4c3af6
lea ecx, [esp + 0x4c]
call fcn.00408080
mov dword [esp + 0x78], 4
mov eax, dword [eax]
mov edx, dword [ebx]
push 0
push eax
mov eax, dword [edx + 0x64]
push 0x81
mov ecx, ebx
call eax
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ba74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
push ecx
push 0x4c3af0
push edx
call fcn.0049e2e5
mov eax, dword [0x4ee77c]
add esp, 0xc
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 0
lea ecx, [esp + 0x30]
mov esi, eax
push ecx
mov ecx, esi
call fcn.00447d50
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebx]
mov edx, dword [edx + 0x88]
lea eax, [esp + 0x4c]
push eax
mov ecx, ebx
call edx
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
sub edx, esi
cmp eax, 7
ja case.default.0x45b84b
jmp dword [eax*4 + 0x45bacc]
mov eax, dword [esp + 0x2c]
lea edi, [eax + ecx]
jmp 0x45b93f
mov edi, dword [esp + 0x2c]
mov eax, edi
sub eax, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
neg eax
add ecx, eax
mov eax, dword [esp + 0x30]
add edi, ecx
add eax, esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], eax
jmp 0x45b949
mov edx, dword [esp + 0x30]
mov ecx, edi
sub ecx, dword [esp + 0x2c]
add edx, esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], edx
jmp case.default.0x45b84b
mov eax, dword [esp + 0x30]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
neg eax
add esi, eax
mov eax, dword [esp + 0x30]
mov ecx, edi
sub ecx, dword [esp + 0x2c]
add eax, esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], eax
jmp case.default.0x45b84b
mov esi, dword [esp + 0x58]
mov ecx, edi
sub ecx, dword [esp + 0x2c]
sub esi, dword [esp + 0x30]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
jmp case.default.0x45b84b
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x58]
mov eax, edi
sub eax, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
neg eax
add ecx, eax
add edi, ecx
sub esi, dword [esp + 0x30]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
jmp 0x45b949
mov eax, dword [esp + 0x2c]
lea edi, [eax + ecx]
mov eax, dword [esp + 0x30]
sub edx, eax
add esi, edx
add eax, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], eax
jmp 0x45b949
mov eax, dword [esp + 0x2c]
lea edi, [eax + ecx]
mov eax, dword [esp + 0x30]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
neg eax
add esi, eax
mov dword [esp + 0x50], esi
mov edx, dword [esp + 0x30]
add edx, esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x58]
sub eax, esi
push eax
sub edi, ecx
push edi
push esi
push ecx
mov ecx, ebx
call fcn.00422150
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
push str._d___d___d___d
push ecx
call fcn.0049e2e5
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
add esp, 0x18
cmp esi, ecx
jle 0x45b9b4
mov eax, esi
mov esi, ecx
mov ecx, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp eax, edx
jle 0x45b9ca
mov dword [esp + 0x20], edx
mov edx, eax
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 0xa8]
cmp esi, eax
jge 0x45b9fc
mov edi, dword [ebx + 0xb0]
add edi, eax
cmp ecx, edi
jle 0x45b9fc
mov ecx, dword [ebx + 0xac]
cmp dword [esp + 0x20], ecx
jge 0x45b9f8
mov edi, dword [ebx + 0xb4]
add edi, ecx
cmp edx, edi
jg 0x45ba24
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jle 0x45ba74
mov ecx, dword [ebx + 0xb0]
add ecx, eax
cmp ecx, esi
jle 0x45ba74
mov eax, dword [ebx + 0xac]
cmp edx, eax
jle 0x45ba74
mov edx, dword [ebx + 0xb4]
add edx, eax
cmp edx, dword [esp + 0x20]
jle 0x45ba74
mov eax, dword [ebx]
mov edx, dword [eax + 0x64]
or dword [ebx + 0xc8], 2
push 0
push 0x4c3af8
push 0x28
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x60]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
push edx
push ecx
mov ecx, ebx
call fcn.00446b20
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc