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

Disassembly:
push 0xffffffffffffffff
push 0x52d13b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push esi
mov esi, dword [esp + 0x154]
xor edx, edx
cmp esi, edx
mov ebx, ecx
mov dword [esp + 0x20], ebx
jne 0x49905a
push 0x530474
push edx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 0x53d28c
mov dword [esp + 0x34], 0x680
call fcn.0041ce50
add esp, 0xc
xor al, al
jmp 0x4990dd
push edi
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x114]
mov dword [esp + 0x110], edx
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0x28], 0x53a87c
mov dword [esp + 0x2c], edi
movzx ecx, word [esi + 2]
push edx
mov dword [esp + 0x154], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x10], edx
movzx edx, word [esi]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00498f80
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 8]
jne 0x4990b6
mov al, 1
jmp 0x4990dc
mov ecx, dword [esi + 4]
test ecx, ecx
push ebp
mov dword [esp + 0x34], ecx
lea ebp, [esi + 0x10]
jne 0x499100
mov ecx, dword [ebx + 0x5c]
or ecx, 1
test edi, edi
mov dword [ebx + 0x5c], ecx
je 0x4990d9
push edi
call dword [sym.imp.gdi32.dll_DeleteObject]
mov al, 1
pop ebp
pop edi
mov ecx, dword [esp + 0x144]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret 4
mov eax, dword [esp + 0x18]
lea ebx, [ebx]
cmp eax, dword [ebx + 8]
je 0x4990c5
mov ebx, dword [eax + 8]
cmp dword [ebx + 0xc], 0xa
jne 0x499119
mov edx, dword [eax]
mov dword [esp + 0x18], edx
jmp 0x499469
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call fcn.004980d0
mov ecx, dword [ebx + 0x11c]
lea edi, [esi + 0xc]
mov dword [esp + 0x78], edi
lea edi, [esp + 0x20]
mov dword [esp + 0x7c], edi
lea edi, [esi + 0xe]
mov dword [esp + 0x88], edi
lea edi, [esp + 0x1c]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x24], ecx
mov dx, word [ebx + 0x120]
lea edi, [esp + 0x44]
mov dword [esp + 0x9c], edi
lea edi, [ebp + 0xe]
mov dword [esp + 0xa8], edi
lea edi, [esp + 0x52]
mov dword [esp + 0xac], edi
lea ecx, [esi + 8]
mov dword [esp + 0x68], ecx
mov ecx, 2
mov dword [esp + 0x74], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x90], ecx
lea edi, [ebp + 0x18]
mov dword [esp + 0xb8], edi
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xe0], ecx
lea edi, [esp + 0x5c]
mov dword [esp + 0xbc], edi
lea ecx, [ebp + 0xa]
mov dword [esp + 0xe8], ecx
mov word [esp + 0x20], dx
mov ax, word [ebx + 0x122]
mov word [esp + 0x1c], ax
lea edi, [ebp + 0x12]
mov dword [esp + 0xc8], edi
lea ecx, [esp + 0x4e]
mov dword [esp + 0xec], ecx
lea eax, [esp + 0x24]
lea edi, [esp + 0x56]
mov dword [esp + 0x6c], eax
mov eax, 4
mov dword [esp + 0xcc], edi
lea ecx, [ebp + 0x14]
lea edi, [ebp + 0x1c]
mov dword [esp + 0xf8], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xd8], edi
mov dword [esp + 0xf0], eax
mov dword [esp + 0x100], eax
lea edi, [esp + 0x60]
lea eax, [ebp + 8]
mov edx, 1
mov dword [esp + 0xfc], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xdc], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x108], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x94], 8
mov dword [esp + 0x98], ebp
mov dword [esp + 0xa4], 0x10
mov dword [esp + 0xb4], 0x20
mov dword [esp + 0xc4], 0x200
mov dword [esp + 0xd4], 0x400
mov dword [esp + 0xe4], 0x80
mov dword [esp + 0xf4], 0x100
mov dword [esp + 0x104], 0x800
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], edx
lea eax, [esp + 0x70]
mov dword [esp + 0x38], 0xb
nop
mov edx, dword [eax - 0xc]
test dword [esi + 0x34], edx
je 0x499319
mov ecx, dword [eax]
mov esi, dword [eax - 8]
mov edi, dword [eax - 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x15c]
mov ecx, dword [esp + 0x38]
add eax, 0x10
dec ecx
mov dword [esp + 0x38], ecx
jne 0x4992f0
mov eax, dword [esi + 0x34]
test al, 0x40
je 0x499335
mov ecx, dword [ebp + 4]
mov dword [esp + 0x48], ecx
test eax, 0x807
je 0x49941c
test al, 2
je 0x49934d
mov dx, word [ebp + 0x1e]
mov word [esp + 0x62], dx
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x3c], eax
jne 0x499375
mov cx, word [esp + 0x20]
cmp word [esp + 0x40], cx
jne 0x499375
mov dx, word [esp + 0x1c]
cmp word [esp + 0x10], dx
jne 0x499375
test edi, edi
je 0x499380
jmp 0x4993ea
test edi, edi
je 0x499380
push edi
call dword [sym.imp.gdi32.dll_DeleteObject]
movzx eax, word [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x60]
mov ecx, dword [esp + 0x24]
push eax
movzx eax, word [esp + 0x24]
shr edx, 7
and edx, 0xffffff01
push edx
push eax
push ecx
call fcn.004951a0
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0x30], edi
je 0x49947a
mov ecx, dword [esp + 0x28]
push edi
lea edx, [esp + 0x118]
push edx
call fcn.00497c50
test al, al
je 0x4994a5
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x10], edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x118]
push ecx
push edi
mov ecx, ebx
call fcn.00498240
test al, al
jne 0x499430
push 0x530474
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0x71a
push ecx
jmp 0x4994b9
lea edx, [esp + 0x44]
push edx
mov ecx, ebx
call fcn.00498130
test al, al
je 0x4994d7
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x11c], eax
mov cx, word [esp + 0x20]
mov eax, dword [esp + 0x34]
mov word [ebx + 0x120], cx
mov dx, word [esp + 0x1c]
dec eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov word [ebx + 0x122], dx
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov ebx, dword [esp + 0x28]
jne 0x4990f6
jmp 0x4990c5
push 0x530474
lea edx, [esp + 0x14]
push 0
push edx
mov dword [esp + 0x1c], 0x53d28c
mov dword [esp + 0x20], 0x704
call fcn.0041ce50
add esp, 0xc
xor al, al
jmp 0x4990db
push 0x530474
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0x70d
push eax
mov dword [esp + 0x1c], 0x53d28c
call fcn.0041ce50
add esp, 0xc
push edi
call dword [sym.imp.gdi32.dll_DeleteObject]
xor al, al
jmp 0x4990db
push 0x530474
lea edx, [esp + 0x14]
push 0
push edx
mov dword [esp + 0x1c], 0x53d28c
mov dword [esp + 0x20], 0x723
call fcn.0041ce50
add esp, 0xc
test edi, edi
je 0x4994d0
push edi
call dword [sym.imp.gdi32.dll_DeleteObject]
xor al, al
jmp 0x4990db