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

Disassembly:
push 0xffffffffffffffff
push 0x556574
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x5b1054]
mov eax, dword [0x5b0fa4]
dec ecx
push edi
neg ecx
sbb ecx, ecx
push eax
and ecx, 0xfffffffe
push 0
add ecx, 2
push ecx
lea ecx, [esp + 0x74]
call fcn.0053111a
mov eax, dword [0x5b1054]
mov edx, dword [0x5b0fa8]
dec eax
push edx
neg eax
sbb eax, eax
push 0
and al, 0xfe
lea ecx, [esp + 0x60]
add eax, 2
mov dword [esp + 0xd4], 0
push eax
call fcn.0053111a
mov edi, dword [esp + 0xd4]
mov ebp, dword [sym.imp.GDI32.dll_GetCurrentObject]
push 1
mov byte [esp + 0xd0], 1
mov ecx, dword [edi + 8]
push ecx
call ebp
push eax
call fcn.00531098
mov ecx, dword [esi + 0x54]
lea edx, [esp + 0xac]
push edx
mov dword [esp + 0x38], eax
call fcn.0049ca60
mov eax, 6
lea ecx, [esp + 0xac]
mov edx, 4
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec edx
jne 0x49cdc9
add eax, 2
mov ecx, dword [esp + 0xe0]
imul eax, dword [0x5b15cc]
add ecx, dword [0x5b1004]
add eax, ecx
mov dword [esp + 0xe0], ecx
mov dword [esp + 0x64], eax
mov eax, dword [0x5b15d0]
push eax
push 0xb
call fcn.004e55f0
mov ecx, dword [0x5b1010]
add esp, 8
mov dword [esp + 0x54], eax
lea edx, [eax + ecx*2 + 1]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x78], edx
call fcn.004d3b80
mov dword [esp + 0x48], eax
mov eax, dword [0x5ada84]
mov dword [esp + 0x10], eax
mov ecx, dword [0x5b0f50]
mov byte [esp + 0xcc], 2
push ecx
lea ecx, [esp + 0x50]
call fcn.0053116a
mov edx, dword [0x5b0f38]
lea ecx, [esp + 0x40]
push edx
mov byte [esp + 0xd0], 3
call fcn.0053116a
mov eax, dword [0x5b0f34]
lea ecx, [esp + 0x38]
push eax
mov byte [esp + 0xd0], 4
call fcn.0053116a
mov ecx, dword [edi + 8]
push 2
push ecx
mov byte [esp + 0xd4], 5
call ebp
push eax
call fcn.00531098
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x8c]
mov ebx, dword [esp + 0xd8]
add ecx, 0x16
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0xe4]
test ebx, ebx
mov ebp, dword [ecx]
jne 0x49cefb
mov edx, dword [0x5b1008]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, esi
lea eax, [edx + ebp]
mov edx, dword [esp + 0xf0]
push edx
push edi
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa4], eax
call fcn.0049e460
add ebp, dword [0x5b1008]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], ebx
cmp ebx, eax
jge 0x49d62a
mov eax, dword [esp + 0xe8]
cmp ebp, dword [eax + 0xc]
jg 0x49d718
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], ebp
lea edx, [ecx + ebp]
mov ecx, dword [esp + 0xdc]
add eax, ecx
mov ecx, esi
push eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x64], eax
call fcn.004ab610
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], vtable.CRgn.0
mov edx, dword [esp + 0xe0]
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x9c], edx
lea edx, [esp + 0x9c]
lea eax, [ebx + 1]
push edx
mov byte [esp + 0xd0], 0xb
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x24]
call fcn.005310ad
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0xec]
test ecx, ecx
jne 0x49cfc2
xor edx, edx
jmp 0x49cfc5
mov edx, dword [ecx + 4]
push 4
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
cmp eax, 1
jne 0x49cffc
mov eax, dword [0x5b0f4c]
mov ecx, edi
push eax
call dword [edx + 0x30]
mov eax, dword [0x5b0f50]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
lea ecx, [esp + 0x58]
jmp 0x49d031
mov eax, dword [0x5b0f28]
mov ecx, edi
push eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49d019
cmp eax, 2
mov eax, 7
jne 0x49d01e
mov eax, 6
mov eax, dword [eax*4 + 0x5b0f1c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call fcn.00530739
mov eax, dword [esp + 0xe8]
mov edx, dword [esp + 0x28]
cmp edx, dword [eax + 4]
jl 0x49d5ac
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x49d064
cmp eax, 3
je 0x49d064
cmp dword [0x5b1064], 1
jne 0x49d07f
mov edx, dword [esp + 0xe0]
lea ecx, [esp + 0x20]
push ecx
push ebp
push ebx
push edx
push edi
mov ecx, esi
call fcn.004a00e0
mov eax, dword [esp + 0x14]
mov ecx, dword [0x5b1010]
cmp eax, 1
lea edx, [ecx + ebp + 1]
mov dword [esp + 0x70], edx
jne 0x49d09d
mov eax, dword [esi + 0x54]
test byte [eax + 8], 4
jne 0x49d0bd
jmp 0x49d0d4
cmp eax, 3
jl 0x49d0d4
mov ebx, dword [esp + 0x14]
push 0
lea ecx, [ebx - 3]
push ecx
mov ecx, dword [esi + 0x54]
add ecx, 0xc
call fcn.004d74e0
test byte [eax + 5], 4
je 0x49d0d8
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xf0]
add eax, edx
push eax
call fcn.004780b0
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0xe0]
mov dword [esp + 0x1c], 0
jmp 0x49d0ed
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x49d11d
cmp dword [0x5b1064], 1
jne 0x49d11d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xe4]
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.004a01c0
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x5b15cc]
add ebp, ecx
mov eax, dword [esp + edx*4 + 0xac]
imul eax, ecx
add eax, ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xe8]
cmp ebp, dword [eax + 8]
jg 0x49d58d
mov edx, dword [esp + 0x2c]
add edx, ecx
mov ecx, dword [eax]
cmp edx, ecx
jl 0x49d58d
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x54]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x2c]
push edx
push ecx
push eax
lea edx, [esp + 0x88]
push ebp
push edx
call dword [sym.imp.USER32.dll_SetRect]
cmp ebx, 1
jg 0x49d38d
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x49d1e2
mov eax, dword [esi + 0x54]
test ebx, ebx
jne 0x49d1b5
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x49d1a0
mov eax, dword [0x5aad38]
jmp 0x49d1b7
mov ecx, dword [eax + 0x40]
test ecx, ecx
jne 0x49d1ae
mov eax, dword [0x5aad34]
jmp 0x49d1b7
mov eax, dword [0x5aad44]
jmp 0x49d1b7
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x14]
call fcn.005281a8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x49d307
cmp ebx, 1
jne 0x49d307
mov edx, dword [edi]
mov eax, dword [0x5b0fd8]
jmp 0x49d301
cmp eax, 1
jne 0x49d231
mov ecx, dword [esi + 0x54]
test ebx, ebx
jne 0x49d21d
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x49d209
mov eax, dword [0x5aad3c]
lea ecx, [esp + 0x10]
push eax
call fcn.005281a8
jmp 0x49d307
mov eax, dword [0x5aad40]
lea ecx, [esp + 0x10]
push eax
call fcn.005281a8
jmp 0x49d307
call fcn.004d3be0
push eax
lea ecx, [esp + 0x14]
call fcn.005281a8
jmp 0x49d307
cmp eax, 2
jne 0x49d2d2
test ebx, ebx
jne 0x49d261
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 0x44]
test eax, eax
mov eax, dword [0x5aad50]
jne 0x49d252
mov eax, dword [0x5aad40]
push eax
lea ecx, [esp + 0x14]
call fcn.005281a8
jmp 0x49d307
mov eax, dword [esi + 0x54]
test byte [eax + 8], 1
je 0x49d307
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x49d307
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
neg edx
sbb edx, edx
push eax
and edx, 0xffffffe1
push ecx
mov ecx, dword [esp + 0x5c]
add edx, 0x2b
push 0x5bdf70
mov eax, dword [edx*4 + 0x5b0f1c]
push eax
lea eax, [ecx - 0xb]
cdq
sub eax, edx
mov edx, dword [esp + 0x80]
sar eax, 1
add eax, edx
mov edx, dword [esp + 0x3c]
push eax
mov ecx, esi
lea eax, [edx + ebp - 0xb]
cdq
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004b2110
jmp 0x49d307
test ebx, ebx
jne 0x49d2dd
mov eax, dword [0x5aad70]
jmp 0x49d2e3
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.005281a8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x49d307
cmp ebx, 1
jne 0x49d307
mov edx, dword [edi]
mov eax, dword [0x5b0f6c]
push eax
mov ecx, edi
call dword [edx + 0x30]
cmp dword [0x5b1064], 1
jne 0x49d337
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [0x5b15cc]
push edx
mov edx, dword [esp + 0x8c]
add edx, ecx
push eax
push edx
push edi
mov ecx, esi
call fcn.004a01c0
cmp ebx, 1
jne 0x49d349
cmp dword [esp + 0x1c], 2
je 0x49d58d
jmp 0x49d36a
test ebx, ebx
jne 0x49d36a
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 2
mov edx, dword [ecx*4 + 0x5b0f1c]
mov ecx, edi
push edx
call dword [eax + 0x30]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x6c]
push eax
push ecx
push edx
jmp 0x49d585
cmp dword [0x5b1064], 1
jne 0x49d3bc
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x5b15cc]
push ecx
mov ecx, dword [esp + 0x8c]
add ecx, eax
push edx
push ecx
push edi
mov ecx, esi
call fcn.004a01c0
cmp ebx, 2
jne 0x49d44e
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x49d3e5
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 0x44]
test eax, eax
je 0x49d3de
mov eax, dword [0x5aad5c]
jmp 0x49d400
mov eax, dword [0x5aad58]
jmp 0x49d400
cmp eax, 1
jne 0x49d3f1
mov eax, dword [0x5aad7c]
jmp 0x49d400
cmp eax, 2
mov eax, dword [0x5aad80]
je 0x49d400
mov eax, dword [0x5aad70]
push eax
lea ecx, [esp + 0x14]
call fcn.005281a8
mov ebp, dword [esp + 0x18]
mov eax, dword [edi]
mov ecx, ebp
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 2
mov edx, dword [ecx*4 + 0x5b0f1c]
mov ecx, edi
push edx
call dword [eax + 0x30]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xe4]
lea edx, [esp + 0x18]
add ecx, 2
push edx
push ebp
push eax
push ecx
jmp 0x49d585
mov ecx, dword [esi + 0x54]
add ebx, 0xfffffffd
push 0
push ebx
add ecx, 0xc
call fcn.004d74e0
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x49d499
mov eax, dword [esi + 0x54]
push ebp
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0xc]
call dword [edx + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.005281a8
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x49d56b
mov eax, dword [edi]
mov ecx, dword [0x5b0fbc]
jmp 0x49d565
mov ebx, dword [esp + 0x1c]
cmp ebx, 1
jne 0x49d4ed
mov eax, dword [ebp]
mov ecx, dword [esi + 0x5c]
push 0xffff
push 0
lea edx, [esp + 0x18]
push 0
push edx
push eax
call fcn.00454c30
test eax, eax
jne 0x49d4d7
mov edx, dword [ebp]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x5c]
push edx
add ecx, 0x280
call fcn.004d4b10
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x49d56b
mov eax, dword [edi]
mov ecx, dword [0x5b0fc0]
jmp 0x49d565
cmp ebx, 2
jne 0x49d531
add ebp, 6
push ebp
call fcn.004ce550
add esp, 4
cmp eax, 1
jne 0x49d523
lea edx, [esp + 0x10]
push edx
push ebp
call fcn.004ce290
mov ebp, dword [esp + 0x20]
add esp, 8
test ebp, ebp
jne 0x49d56b
mov eax, dword [edi]
mov ecx, dword [0x5b0fc4]
jmp 0x49d565
mov edx, dword [esp + 0x2c]
mov eax, dword [0x5b15cc]
lea ebp, [edx + eax]
jmp 0x49d59e
mov eax, dword [esi + 0x54]
push ebp
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0xc]
call dword [edx + 0x14]
mov ebp, eax
push ebp
call fcn.00478d70
add esp, 4
add eax, ebp
lea ecx, [esp + 0x10]
push eax
call fcn.005281a8
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x49d56b
mov eax, dword [edi]
mov ecx, dword [0x5b0f6c]
push ecx
mov ecx, edi
call dword [eax + 0x30]
lea edx, [esp + 0x20]
lea eax, [esp + 0x7c]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x68]
push ecx
push ebp
push edx
push eax
push edi
mov ecx, esi
call fcn.0049ff60
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x5b15cc]
mov ebx, dword [esp + 0x1c]
lea ebp, [ecx + edx]
inc ebx
cmp ebx, 3
mov dword [esp + 0x1c], ebx
jle 0x49d0e9
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
test eax, eax
je 0x49d5be
lea eax, [esp + 0x4c]
jmp 0x49d5d3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49d5cf
cmp eax, 2
lea eax, [esp + 0x40]
jne 0x49d5d3
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.00530739
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_PaintRgn]
mov dword [esp + 0x20], vtable.CGdiObject.0
lea ecx, [esp + 0x20]
mov byte [esp + 0xcc], 0xc
call fcn.00531104
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
inc eax
mov byte [esp + 0xcc], 5
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x49cf0b
cmp dword [0x5b1064], 1
jne 0x49d658
mov edx, dword [esp + 0xe0]
lea esi, [ebp - 1]
push esi
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, edi
call fcn.00530b89
mov ecx, dword [esp + 0x64]
push esi
push ecx
mov ecx, edi
call fcn.00530bd5
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0x34]
push eax
mov ecx, edi
mov dword [edx], ebp
call fcn.00530739
mov ecx, dword [esp + 0x74]
push ecx
mov ecx, edi
call fcn.00530739
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc], 0xd
call fcn.00531104
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0xcc], 0xe
call fcn.00531104
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xcc], 0xf
call fcn.00531104
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], 1
call fcn.0052801f
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0xcc], 0x10
call fcn.00531104
mov dword [esp + 0x68], esi
lea ecx, [esp + 0x68]
mov dword [esp + 0xcc], 0x11
call fcn.00531104
xor eax, eax
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret 0x20
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, edi
call fcn.00530739
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc], 6
call fcn.00531104
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0xcc], 7
call fcn.00531104
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xcc], 8
call fcn.00531104
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], 1
call fcn.0052801f
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0xcc], 9
call fcn.00531104
mov dword [esp + 0x68], esi
lea ecx, [esp + 0x68]
mov dword [esp + 0xcc], 0xa
call fcn.00531104
mov eax, 1
jmp 0x49d6fd