Function at 0x484190
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4da95b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0x98]
push esi
push edi
xor eax, eax
mov dword [esp + 0x98], eax
mov ecx, dword [ebp + 0xd0]
mov edx, dword [0x507fec]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x507fec
xor edi, edi
xor esi, esi
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x98], 1
mov ecx, dword [ebp + 0x4c]
call fcn.00472db0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x100]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
call fcn.0048bb50
test eax, eax
mov dword [esp + 0x14], eax
je 0x48425a
mov ecx, eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x34]
push eax
call edx
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov ebx, dword [ebp + 0x108]
call fcn.0048bb50
test eax, eax
mov dword [esp + 0x1c], eax
je 0x484288
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [esp + 0x34]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov ebx, dword [ebp + 0x10c]
call fcn.0048bb50
test eax, eax
mov dword [esp + 0x28], eax
je 0x4842b6
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [esp + 0x34]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov eax, dword [ebp + 0xf8]
test eax, eax
je 0x4842c2
mov esi, eax
mov eax, dword [ebp + 0xf4]
test eax, eax
je 0x4842ce
mov edi, eax
mov eax, dword [ebp + 0x130]
sub eax, 0
je 0x4842ec
sub eax, 1
jne 0x4842f8
mov eax, dword [ebp + 0xf0]
add eax, edi
add dword [esp + 0x50], eax
jmp 0x4842f8
mov ecx, dword [ebp + 0xf0]
add ecx, esi
add dword [esp + 0x54], ecx
mov ebx, dword [ebp + 0x104]
call fcn.0048bb50
mov edi, dword [esp + 0xa4]
mov esi, eax
test esi, esi
je 0x48434c
mov ebx, dword [esi]
push 0xff
push ecx
push ebp
call fcn.0045c150
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add esp, 4
push eax
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0x48]
mov dword [eax + 0xc], ecx
push edi
mov ecx, esi
call edx
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp + 0x134]
cmp eax, 0xffffffff
mov ecx, dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x18], 0xffffffff
jne 0x484382
mov eax, dword [ebp + 0x54]
cmp eax, 0xffffffff
jne 0x484382
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x48438a
push eax
push edi
call ecx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x24]
test eax, eax
mov dword [esp + 0x20], 0
je 0x4843a9
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc8]
xor edx, edx
test eax, eax
je 0x4843df
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x484c52
mov ecx, eax
mov ecx, dword [ecx + 8]
test ecx, ecx
mov eax, dword [eax]
je 0x4843db
cmp dword [ecx + 0xec], 0
jne 0x4843db
add edx, 1
test eax, eax
jne 0x4843b5
mov ebx, dword [esp + 0xa4]
xor edi, edi
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edi
jle 0x48483c
lea ebx, [ebx]
test edi, edi
jl 0x48443d
cmp edi, dword [ebp + 0xd0]
jge 0x48443d
jb 0x484412
xor eax, eax
jmp 0x484429
mov eax, dword [ebp + 0xc8]
test eax, eax
je 0x484429
test edi, edi
jbe 0x484429
mov ecx, edi
sub ecx, 1
mov eax, dword [eax]
jne 0x484422
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x484c52
mov eax, dword [eax + 8]
jmp 0x48443f
xor eax, eax
cmp dword [eax + 0xec], 0
jne 0x48482b
lea edx, [esp + 0x50]
push edx
push edi
mov esi, ebp
call fcn.00484cf0
cmp dword [esp + 0x28], 0
je 0x4845b6
mov ecx, 1
cmp dword [esp + 0x30], ecx
jle 0x4845b6
mov eax, dword [ebp + 0x130]
sub dword [esp + 0x30], ecx
xor esi, esi
sub eax, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
je 0x484502
sub eax, ecx
jne 0x48456e
mov ecx, dword [esp + 0x5c]
mov eax, dword [ebp + 0xe8]
add eax, ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
cmp eax, ecx
jle 0x4844d2
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
cmp ecx, eax
jle 0x4844ec
mov edx, ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], eax
sub eax, ecx
sub eax, dword [esp + 0x44]
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push esi
lea eax, [esp + 0x68]
push eax
jmp 0x484568
mov ecx, dword [esp + 0x58]
mov eax, dword [ebp + 0xe8]
mov edx, dword [esp + 0x5c]
push edx
add eax, ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
cmp ecx, eax
jle 0x48453f
mov edx, ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x6c]
cmp edx, esi
jle 0x484553
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], edx
sub eax, ecx
sub eax, dword [esp + 0x40]
push 0
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
push 0xff
push ecx
push ebp
call fcn.0045c150
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
add esp, 4
push eax
push 0xffffffffffffffff
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x88]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x48]
push ebx
call eax
cmp edi, dword [ebp + 0xe4]
je 0x48482b
mov ecx, dword [ebp + 0x13c]
test ecx, ecx
je 0x484645
mov edx, dword [ecx]
mov edx, dword [edx + 4]
xor eax, eax
cmp edi, dword [ebp + 0xe0]
sete al
push eax
push edi
lea eax, [esp + 0x58]
push eax
push ebx
push ebp
call edx
test eax, eax
jne 0x484695
mov eax, dword [esp + 0x14]
test eax, eax
je 0x484695
mov esi, dword [eax]
push 0xff
push ecx
push ebp
call fcn.0045c150
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
add esp, 4
push eax
xor eax, eax
cmp edi, dword [ebp + 0xe0]
sete al
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x48]
push ebx
call eax
jmp 0x484695
mov eax, dword [esp + 0x14]
test eax, eax
je 0x484695
mov esi, dword [eax]
push 0xff
push ecx
push ebp
call fcn.0045c150
mov edx, dword [esp + 0x58]
xor ecx, ecx
add esp, 4
cmp edi, dword [ebp + 0xe0]
push eax
sete cl
push ecx
mov ecx, dword [esp + 0x60]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x48]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x30]
push ebx
call edx
cmp dword [esp + 0x1c], 0
je 0x484747
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x74], ecx
mov ecx, dword [ebp + 0x124]
push ecx
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x120]
push eax
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x84], edx
call dword [sym.imp.USER32.dll_OffsetRect]
lea edx, [esp + 0x48]
push edx
push ebp
lea edi, [esp + 0x78]
lea esi, [esp + 0x88]
call fcn.00484e10
mov edi, dword [esp + 0x1c]
mov ebx, dword [edi]
push 0xff
push ecx
push ebp
mov esi, eax
call fcn.0045c150
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esp, 4
push eax
mov eax, dword [esp + 0x3c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0xc0]
mov edx, dword [ebx + 0x48]
push eax
mov ecx, edi
call edx
mov ebx, dword [esp + 0xa4]
mov edi, dword [esp + 0x34]
mov ecx, dword [ebp + 0x13c]
test ecx, ecx
je 0x48476b
mov eax, dword [ecx]
mov eax, dword [eax]
xor edx, edx
cmp edi, dword [ebp + 0xe0]
sete dl
push edx
push edi
lea edx, [esp + 0x58]
push edx
push ebx
push ebp
call eax
mov ecx, dword [ebp + 0x12c]
mov eax, dword [ebp + 0x128]
push ecx
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
test edi, edi
jl 0x4847c1
cmp edi, dword [ebp + 0xd0]
jge 0x4847c1
jb 0x484796
xor eax, eax
jmp 0x4847ad
mov eax, dword [ebp + 0xc8]
test eax, eax
je 0x4847ad
test edi, edi
jbe 0x4847ad
mov ecx, edi
sub ecx, 1
mov eax, dword [eax]
jne 0x4847a6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x484c52
mov eax, dword [eax + 8]
jmp 0x4847c3
xor eax, eax
mov edx, dword [eax + 0xe8]
test edx, edx
jne 0x4847d1
xor eax, eax
jmp 0x4847e5
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4847d6
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.00403b90
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], edx
lea edx, [esp + 0x34]
mov dword [eax + 0xc], ecx
push edx
lea eax, [esp + 0xb8]
push eax
push ebp
call fcn.00484ea0
mov ebx, dword [esp + 0xa4]
add edi, 1
cmp edi, dword [esp + 0x2c]
mov dword [esp + 0x34], edi
jl 0x484400
mov edi, dword [esp + 0x3c]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x484864
cmp dword [esp + 0x20], 0
jne 0x48485c
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
jmp 0x484864
mov dword [esp + 0x20], 0
cmp dword [edi + 0x10], 0xffffffff
je 0x484883
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push ecx
push ebx
call esi
mov eax, dword [edi + 0x10]
push eax
push ebx
call esi
mov dword [esp + 0x18], eax
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
jle 0x4848e7
mov esi, dword [esp + 0x2c]
nop
test ebx, ebx
jl 0x4848cd
cmp ebx, dword [ebp + 0xd0]
jge 0x4848cd
jb 0x4848a2
xor eax, eax
jmp 0x4848b9
mov eax, dword [ebp + 0xc8]
test eax, eax
je 0x4848b9
test ebx, ebx
jbe 0x4848b9
mov ecx, ebx
sub ecx, 1
mov eax, dword [eax]
jne 0x4848b2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x484c52
mov eax, dword [eax + 8]
jmp 0x4848cf
xor eax, eax
cmp dword [eax + 0xec], 0
jne 0x4848e0
cmp ebx, dword [ebp + 0xe4]
je 0x484952
add ebx, 1
cmp ebx, esi
jl 0x484890
mov edi, dword [esp + 0xa4]
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x4848ff
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x48490f
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [esp + 0x98], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x484937
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret 8
lea edx, [esp + 0x50]
push edx
push ebx
mov esi, ebp
call fcn.00484cf0
mov ecx, dword [ebp + 0x13c]
test ecx, ecx
je 0x4849db
mov edi, dword [esp + 0xa4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 2
push ebx
lea edx, [esp + 0x58]
push edx
push edi
push ebp
call eax
test eax, eax
jne 0x484a37
mov esi, dword [esp + 0x14]
test esi, esi
je 0x484a37
mov eax, dword [esi]
push 0xff
push ecx
push ebp
mov dword [esp + 0x48], eax
call fcn.0045c150
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
add esp, 4
push eax
push 2
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x48]
push edi
mov ecx, esi
call eax
jmp 0x484a37
mov esi, dword [esp + 0x14]
test esi, esi
je 0x484a30
mov eax, dword [esi]
push 0xff
push ecx
push ebp
mov dword [esp + 0x48], eax
call fcn.0045c150
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0xac]
add esp, 4
push eax
push 2
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x48]
push edi
mov ecx, esi
call eax
jmp 0x484a37
mov edi, dword [esp + 0xa4]
cmp dword [esp + 0x1c], 0
je 0x484beb
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebp + 0x124]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x120]
push ecx
mov dword [esp + 0x78], edx
push eax
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
test byte [0x509c24], 1
jne 0x484aad
or dword [0x509c24], 1
mov byte [esp + 0x98], 2
call fcn.0045dde0
push 0x4db260
call fcn.0049f796
add esp, 4
mov byte [esp + 0x98], 1
mov eax, dword [0x509bf4]
cmp eax, 0xffffffff
jne 0x484b78
lea esi, [esp + 0x34]
call fcn.0045d8c0
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0
push 0x4ecee8
push str.basesetting
call edi
mov esi, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x484afd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x484b0f
mov ecx, 0x509be8
call fcn.0045dae0
test eax, eax
jne 0x484b6c
cmp dword [0x509bec], 0xffffffff
jne 0x484b57
lea esi, [esp + 0x30]
call fcn.0045d8c0
mov eax, dword [eax]
push eax
push 0
push str.debug
push str.basesetting
call edi
mov dword [0x509bec], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x484b57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x509bec], 0
jne 0x484b6c
mov dword [0x509bf4], 0
jmp 0x484b8d
mov dword [0x509bf4], 1
jmp 0x484b7c
test eax, eax
je 0x484b8d
cmp dword [ebp + 0xb4], 0
mov dword [esp + 0x3c], 1
jne 0x484b95
mov dword [esp + 0x3c], 0
lea ecx, [esp + 0x48]
push ecx
push ebp
lea edi, [esp + 0x78]
lea esi, [esp + 0x88]
call fcn.00484e10
mov edx, dword [esp + 0x3c]
mov edi, dword [eax]
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx]
push 0xff
push edx
push ebx
sub esp, 0x10
mov edx, esp
mov dword [edx], edi
mov edi, dword [eax + 4]
mov dword [edx + 4], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], edi
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0xc0]
mov eax, dword [esi + 0x48]
push edx
call eax
mov edi, dword [esp + 0xa4]
mov ecx, dword [ebp + 0x13c]
test ecx, ecx
je 0x484c05
mov edx, dword [ecx]
mov edx, dword [edx]
push 2
push ebx
lea eax, [esp + 0x58]
push eax
push edi
push ebp
call edx
mov ecx, dword [ebp + 0x12c]
mov eax, dword [ebp + 0x128]
push ecx
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
test ebx, ebx
jl 0x484c61
cmp ebx, dword [ebp + 0xd0]
jge 0x484c61
jb 0x484c30
xor eax, eax
jmp 0x484c47
mov eax, dword [ebp + 0xc8]
test eax, eax
je 0x484c47
test ebx, ebx
jbe 0x484c47
mov edi, edi
sub ebx, 1
mov eax, dword [eax]
jne 0x484c40
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x484c5c
push 0x80004005
call fcn.00401020
mov eax, dword [eax + 8]
jmp 0x484c63
xor eax, eax
mov edx, dword [eax + 0xe8]
test edx, edx
jne 0x484c71
xor eax, eax
jmp 0x484c85
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x484c76
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.00403b90
mov eax, dword [ebp + 0x138]
xor esi, esi
test eax, eax
je 0x484ca7
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xb8]
push ecx
push ebp
call fcn.00484ea0
test esi, esi
je 0x4848ee
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x4848ee