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

Disassembly:
sub esp, 0x98
push ebx
push ebp
mov ebp, dword [esp + 0xc4]
xor eax, eax
push esi
mov esi, dword [esp + 0xac]
xor bl, bl
cmp ebp, eax
push edi
mov edi, dword [esp + 0xc4]
setne byte [esp + 0x17]
mov byte [esp + 0x1f], bl
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], eax
cmp edi, 1
jge 0x48285b
mov edi, 1
mov dword [esp + 0xc4], edi
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x70], eax
test eax, eax
je 0x483079
push 8
lea eax, [esp + 0x1a]
push eax
mov eax, dword [esp + 0xc8]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x5c]
push edx
push eax
mov eax, dword [esp + 0x84]
call fcn.0043a630
add esp, 0x14
mov dword [esp + 0x6c], eax
test eax, eax
je 0x483052
mov ecx, dword [esp + 0x40]
mov eax, ecx
cdq
idiv edi
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x64], eax
imul eax, ebx
imul ebx, ecx
mov dword [esp + 0x88], eax
imul eax, edi
cmp eax, ebx
je 0x4828cf
mov bl, 1
jmp 0x483045
xor edi, edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edi
cmp ebp, edi
je 0x48292b
push 8
lea ecx, [esp + 0x1a]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x80]
push ebp
call fcn.0043a630
add esp, 0x14
mov dword [esp + 0x54], eax
test eax, eax
jne 0x48290d
mov bl, 1
jmp 0x483045
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x3c]
jne 0x482921
mov edi, dword [esp + 0x44]
cmp dword [esp + 0x64], edi
je 0x48292b
mov byte [esp + 0x1f], 1
jmp 0x483030
mov eax, dword [esp + 0xac]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x34]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00496570
add esp, 0x2c
test al, al
je 0x483030
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x90]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x483030
cmp dword [esp + 0xb8], 0
mov edx, dword [esp + 0x94]
mov dword [esp + 0x34], edx
jg 0x482996
mov dword [esp + 0xb8], edx
cmp dword [esp + 0xbc], 0
mov ecx, dword [esp + 0x98]
jg 0x4829ae
mov dword [esp + 0xbc], ecx
test esi, esi
jns 0x4829bb
add dword [esp + 0xb8], esi
xor esi, esi
mov ebp, dword [esp + 0xb4]
test ebp, ebp
jns 0x4829cf
add dword [esp + 0xbc], ebp
xor ebp, ebp
mov eax, dword [esp + 0xb8]
cmp eax, 1
jl 0x483030
cmp dword [esp + 0xbc], 1
jl 0x483030
add eax, esi
cmp eax, edx
jg 0x483030
mov eax, dword [esp + 0xbc]
add eax, ebp
cmp eax, ecx
jg 0x483030
imul edi, dword [esp + 0x3c]
mov eax, ecx
imul eax, edx
sub ecx, ebp
dec ecx
mov dword [esp + 0x80], esi
sub esi, dword [esp + 0x50]
mov dword [esp + 0x58], ecx
sub ecx, dword [esp + 0xbc]
add esi, dword [esp + 0xb8]
add ecx, dword [esp + 0x64]
dec eax
dec edi
mov dword [esp + 0x60], eax
lea edx, [ebx - 1]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x3c], ecx
test eax, eax
js 0x482a5c
mov ecx, dword [esp + 0x2c]
add ecx, 3
inc eax
mov byte [ecx], 0
add ecx, 4
dec eax
jne 0x482a53
test edx, edx
js 0x482a71
mov eax, dword [esp + 0x6c]
add eax, 3
inc edx
mov byte [eax], 0
add eax, 4
dec edx
jne 0x482a68
or dword [esp + 0xc8], 0xff000000
xor eax, eax
test edi, edi
js 0x482a92
mov ecx, dword [esp + 0x54]
or dword [ecx + eax*4], 0xff000000
inc eax
cmp eax, edi
jle 0x482a86
cmp dword [esp + 0xc4], 0
mov dword [esp + 0x44], 0
jle 0x482fcd
jmp 0x482ab0
mov ecx, dword [esp + 0x44]
imul ecx, dword [esp + 0x88]
cmp dword [esp + 0xd0], 1
mov edx, dword [esp + 0x6c]
lea eax, [edx + ecx*4]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
jge 0x482ca5
cmp eax, dword [esp + 0x3c]
jl 0x482fb7
mov ecx, dword [esp + 0x34]
imul eax, ecx
mov dword [esp + 0x28], eax
mov eax, ecx
neg eax
mov dword [esp + 0x68], eax
mov eax, 1
sub eax, dword [esp + 0x64]
mov dword [esp + 0x74], eax
jmp 0x482b10
mov ebp, dword [esp + 0x80]
cmp ebp, dword [esp + 0x5c]
jg 0x482c85
mov ecx, dword [esp + 0x74]
add ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
lea ecx, [ecx]
mov eax, dword [esp + 0x50]
lea ecx, [eax + ebp - 1]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x30]
xor esi, esi
mov byte [esp + 0x14], 1
cmp eax, ecx
jl 0x482bc0
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
add edx, ebp
lea edx, [edi + edx*4]
neg ebx
add ebx, ebx
mov edi, eax
sub edi, ecx
add ebx, ebx
mov dword [esp + 0x38], edx
inc edi
nop
cmp ebp, dword [esp + 0x20]
jg 0x482ba6
mov eax, dword [esp + 0x38]
mov ecx, ebp
lea esp, [esp]
mov edx, dword [esp + 0x7c]
mov edx, dword [edx + esi*4]
cmp dword [eax], edx
je 0x482b94
cmp edx, dword [esp + 0xd4]
jne 0x482ba1
inc ecx
inc esi
add eax, 4
cmp ecx, dword [esp + 0x20]
jle 0x482b80
jmp 0x482ba6
mov byte [esp + 0x14], 0
add dword [esp + 0x38], ebx
dec edi
jne 0x482b70
cmp byte [esp + 0x14], 0
je 0x482c7a
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
cmp byte [esp + 0x17], 0
je 0x482c21
xor edx, edx
cmp eax, ecx
jl 0x482c62
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
sub esi, dword [esp + 0x30]
neg edi
add eax, ebp
add edi, edi
lea ecx, [ecx + eax*4]
add edi, edi
mov dword [esp + 0x48], ecx
inc esi
cmp ebp, dword [esp + 0x20]
jg 0x482c12
mov eax, dword [esp + 0x20]
sub eax, ebp
inc eax
mov ebx, dword [esp + 0x54]
mov ebx, dword [ebx + edx*4]
mov dword [ecx], ebx
add ecx, 4
inc edx
dec eax
jne 0x482c02
mov ecx, dword [esp + 0x48]
add ecx, edi
dec esi
mov dword [esp + 0x48], ecx
jne 0x482bf5
jmp 0x482c62
cmp eax, ecx
jl 0x482c62
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
add edx, ebp
lea ebx, [eax + edx*4]
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x30]
neg esi
add esi, esi
add esi, esi
inc edx
cmp ebp, dword [esp + 0x20]
jg 0x482c5d
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0xc8]
sub ecx, ebp
inc ecx
mov edi, ebx
rep stosd dword es:[edi], eax
add ebx, esi
dec edx
jne 0x482c45
cmp byte [esp + 0xdc], 0
je 0x482c76
cmp dword [esp + 0xd4], 0xffffffff
jne 0x482c7a
mov ebp, dword [esp + 0x20]
inc ebp
cmp ebp, dword [esp + 0x5c]
jle 0x482b30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
add dword [esp + 0x28], ecx
dec eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x3c]
jge 0x482b10
jmp 0x482fb7
cmp eax, dword [esp + 0x3c]
jl 0x482fb7
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
imul eax, ecx
mov dword [esp + 0x28], eax
mov eax, ecx
neg eax
mov dword [esp + 0x68], eax
mov eax, 1
sub eax, dword [esp + 0x64]
mov dword [esp + 0x74], eax
jmp 0x482ce0
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x48], ebx
cmp ebx, dword [esp + 0x5c]
jg 0x482f9c
mov edx, dword [esp + 0x74]
add edx, dword [esp + 0x18]
mov dword [esp + 0x30], edx
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
lea edx, [ecx + ebx - 1]
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x14], 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], 0
cmp eax, ecx
jl 0x482ec1
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
neg edx
add edx, edx
add edx, edx
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x28]
sub eax, ecx
add edx, ebx
inc eax
lea edx, [esi + edx*4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x84], edx
mov eax, edx
mov dword [esp + 0xb0], ebx
cmp ebx, dword [esp + 0x20]
jg 0x482e8f
mov dword [esp + 0x78], eax
lea ecx, [ecx]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x38]
cmp dword [ecx + edx*4], eax
je 0x482e62
mov esi, edx
mov al, byte [ecx + esi*4 + 2]
mov bl, byte [ecx + esi*4 + 1]
mov cl, byte [ecx + esi*4]
mov edx, dword [esp + 0xd0]
movzx esi, al
mov byte [esp + 0x15], cl
cmp edx, esi
jle 0x482dae
mov byte [esp + 0x27], 0
jmp 0x482db6
mov cl, al
sub cl, dl
mov byte [esp + 0x27], cl
movzx ebp, bl
cmp edx, ebp
jle 0x482dc4
mov byte [esp + 0x25], 0
jmp 0x482dcc
mov cl, bl
sub cl, dl
mov byte [esp + 0x25], cl
mov cl, byte [esp + 0x15]
movzx edi, cl
cmp edx, edi
jle 0x482dde
mov byte [esp + 0x16], 0
jmp 0x482de4
sub cl, dl
mov byte [esp + 0x16], cl
mov ecx, 0xff
sub ecx, esi
cmp edx, ecx
jle 0x482df6
mov byte [esp + 0x24], 0xff
jmp 0x482dfd
lea ecx, [eax + edx]
mov byte [esp + 0x24], cl
mov eax, 0xff
sub eax, ebp
cmp edx, eax
jle 0x482e0f
mov byte [esp + 0x26], 0xff
jmp 0x482e16
lea eax, [ebx + edx]
mov byte [esp + 0x26], al
mov ecx, 0xff
sub ecx, edi
cmp edx, ecx
jle 0x482e26
or dl, 0xff
jmp 0x482e2a
add dl, byte [esp + 0x15]
mov esi, dword [esp + 0x78]
mov al, byte [esi + 2]
mov bl, byte [esi]
mov cl, byte [esi + 1]
mov byte [esp + 0x15], bl
cmp al, byte [esp + 0x27]
jb 0x482e86
cmp al, byte [esp + 0x24]
ja 0x482e86
cmp cl, byte [esp + 0x25]
jb 0x482e86
cmp cl, byte [esp + 0x26]
ja 0x482e86
mov al, bl
cmp al, byte [esp + 0x16]
jb 0x482e86
cmp al, dl
ja 0x482e86
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0xb0]
add dword [esp + 0x78], 4
inc dword [esp + 0x38]
inc eax
mov dword [esp + 0xb0], eax
cmp eax, dword [esp + 0x20]
jle 0x482d70
jmp 0x482e8f
mov ebx, dword [esp + 0x48]
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x84]
add eax, dword [esp + 0x8c]
dec dword [esp + 0x40]
mov dword [esp + 0x84], eax
jne 0x482d58
cmp byte [esp + 0x14], 0
je 0x482f8d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
cmp byte [esp + 0x17], 0
je 0x482f34
xor edx, edx
cmp eax, ecx
jl 0x482f75
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
sub esi, dword [esp + 0x30]
neg edi
add eax, ebx
add edi, edi
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x20]
add edi, edi
mov dword [esp + 0x40], ecx
inc esi
lea ebx, [ebx]
cmp ebx, eax
jg 0x482f25
sub eax, ebx
inc eax
jmp 0x482f10
mov ebp, dword [esp + 0x54]
mov ebp, dword [ebp + edx*4]
mov dword [ecx], ebp
add ecx, 4
inc edx
dec eax
jne 0x482f10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
add ecx, edi
dec esi
mov dword [esp + 0x40], ecx
jne 0x482f00
jmp 0x482f75
cmp eax, ecx
jl 0x482f75
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
add edx, ebx
lea ebp, [eax + edx*4]
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x30]
neg esi
add esi, esi
add esi, esi
inc edx
cmp ebx, dword [esp + 0x20]
jg 0x482f70
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0xc8]
sub ecx, ebx
inc ecx
mov edi, ebp
rep stosd dword es:[edi], eax
add ebp, esi
dec edx
jne 0x482f58
cmp byte [esp + 0xdc], 0
je 0x482f89
cmp dword [esp + 0xd4], 0xffffffff
jne 0x482f8d
mov ebx, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x48], ebx
cmp ebx, dword [esp + 0x5c]
jle 0x482d01
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
add dword [esp + 0x28], ecx
dec eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x3c]
jge 0x482ce0
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0xc4]
jl 0x482ab0
cmp dword [esp + 0xd8], 0xffffffff
je 0x483030
xor eax, eax
cmp byte [esp + 0x17], al
je 0x483007
cmp dword [esp + 0x60], eax
jl 0x483030
mov esi, dword [esp + 0xd8]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x60]
test dword [ecx + eax*4], 0xff000000
jne 0x483000
mov dword [ecx + eax*4], esi
inc eax
cmp eax, edx
jle 0x482ff4
jmp 0x483030
cmp dword [esp + 0x60], eax
jl 0x483030
mov edx, dword [esp + 0xc8]
mov edi, dword [esp + 0xd8]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x60]
cmp dword [ecx + eax*4], edx
je 0x48302b
mov dword [ecx + eax*4], edi
inc eax
cmp eax, esi
jle 0x483023
mov eax, dword [esp + 0x54]
test eax, eax
je 0x483041
push eax
call fcn.004c57e5
add esp, 4
mov bl, byte [esp + 0x1f]
mov edx, dword [esp + 0x6c]
push edx
call fcn.004c57e5
add esp, 4
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
test bl, bl
je 0x483079
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret