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

Disassembly:
push 0xffffffffffffffff
push 0x480c80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x64]
push ebp
xor ebp, ebp
push esi
and eax, 0x8000007f
mov esi, ecx
mov dword [esp + 0x18], ebp
jns 0x4139d2
dec eax
or eax, 0xffffff80
inc eax
mov ecx, dword [esi + eax*4 + 0x80]
mov dword [esp + 0x6c], eax
cmp ecx, ebp
je 0x413dc6
push ebx
push edi
mov ecx, 0x4cca20
call fcn.0044f6f0
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], 0x484a94
mov ecx, dword [esi + 0x290]
mov edx, dword [esp + 0x78]
neg ecx
mov edi, dword [esp + 0x80]
mov dword [esp + 0x6c], ebp
sbb ecx, ecx
xor ebx, ebx
and ecx, 0x1f4
mov byte [esp + 0x13], 0
add ecx, 0x190
cmp eax, ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ebx
je 0x413a83
mov dl, byte [eax + 0x3c]
push eax
mov byte [esp + 0x84], dl
mov dl, byte [esi + 0x294]
mov eax, dword [esp + 0x84]
push 1
push ebx
push ebx
and eax, 0xff
mov byte [esp + 0x38], dl
push ebx
mov edx, dword [esi + 0x28c]
push eax
mov eax, dword [esp + 0x40]
push ebx
and eax, 0xff
push ebx
push eax
push ecx
push ebx
push ebx
push ebx
push edx
call dword [0x4830a4]
push eax
lea ecx, [esp + 0x30]
call fcn.0047da84
mov ebp, dword [esp + 0x84]
xor eax, eax
mov al, byte [edi]
dec ebp
inc edi
cmp eax, 2
mov dword [esp + 0x84], ebp
jg 0x413ae2
je 0x413ad1
sub eax, 0
je 0x413d48
dec eax
jne 0x413af3
mov cl, byte [edi]
inc edi
mov byte [esi + 0x28a], cl
mov dl, byte [edi]
inc edi
mov byte [esi + 0x289], dl
mov al, byte [edi]
inc edi
sub ebp, 3
mov byte [esi + 0x288], al
mov dword [esp + 0x84], ebp
jmp 0x413af3
mov eax, dword [esp + 0x20]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x20], ecx
jmp 0x413af3
cmp eax, 0xa
je 0x413b2c
cmp eax, 0xff
jne 0x413af3
mov byte [esp + 0x13], 1
test ebp, ebp
jle 0x413d48
mov al, byte [esp + 0x13]
test al, al
je 0x413a83
cmp al, 1
jne 0x413ca2
mov byte [esp + 0x80], 0
mov al, byte [edi]
test al, al
je 0x413c8f
cmp al, 0x7f
jne 0x413b7e
inc edi
mov byte [0x4c4b54], 0
dec ebp
jmp 0x413b13
xor eax, eax
xor ecx, ecx
mov ax, word [edi]
mov cl, byte [edi + 2]
add edi, 2
xor edx, edx
inc edi
mov byte [esp + 0x28], 0
mov dl, byte [edi]
mov bl, byte [edi + 1]
inc edi
inc edi
test bl, bl
je 0x413b51
mov byte [esp + 0x28], 1
mov ebx, dword [esp + 0x28]
push ebx
lea ebx, [esp + 0x48]
push ebx
push edx
push ecx
push eax
mov ecx, esi
call fcn.00414300
lea edx, [esp + 0x44]
sub ebp, 4
mov dword [esp + 0x24], edx
mov dword [esp + 0x84], ebp
mov ebx, edx
jmp 0x413caa
cmp al, 0x5c
jne 0x413b9c
mov cl, byte [esp + 0x80]
test cl, cl
jne 0x413b9c
inc edi
mov byte [esp + 0x80], 1
dec ebp
jmp 0x413b13
cmp byte [edi - 1], 0x7f
jne 0x413bbd
inc edi
dec ebp
mov byte [esp + 0x14], al
mov byte [esp + 0x15], 0
mov dword [esp + 0x84], ebp
mov byte [0x4c4b54], 2
jmp 0x413bfe
cmp al, 0x80
jbe 0x413bd2
inc edi
mov byte [esp + 0x14], al
mov al, byte [edi]
inc edi
mov byte [esp + 0x15], al
sub ebp, 2
jmp 0x413bf0
mov ecx, dword [0x48f628]
and eax, 0xff
inc edi
dec ebp
mov dl, byte [ecx + eax*2]
lea eax, [ecx + eax*2]
mov byte [esp + 0x14], dl
mov al, byte [eax + 1]
mov byte [esp + 0x15], al
mov dword [esp + 0x84], ebp
mov byte [0x4c4b54], 1
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov ch, byte [esi + 0x288]
xor edx, edx
mov cl, byte [esi + 0x289]
mov dl, byte [esi + 0x28a]
shl ecx, 8
or ecx, edx
push eax
mov byte [esp + 0x84], 0
mov byte [esp + 0x1a], 0
mov ebp, ecx
call fcn.0044f2f0
mov cl, byte [esi + 0x414]
add esp, 4
mov ebx, eax
mov eax, dword [esi + 0x28c]
lea edx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x80]
push ecx
push ebp
mov ebp, dword [esp + 0x30]
mov ecx, dword [esi + eax*4 + 0x80]
push edx
push ebp
call fcn.0040bc00
add ebp, eax
push ebx
mov dword [esp + 0x20], ebp
call fcn.0044f2f0
mov ebp, dword [esp + 0x88]
mov ebx, dword [esp + 0x28]
add esp, 4
jmp 0x413b13
inc edi
dec ebp
mov dword [esp + 0x84], ebp
mov byte [esp + 0x13], 0
jmp 0x413a83
cmp al, 2
jne 0x413d48
mov al, byte [ebx]
test al, al
je 0x413d3a
mov edx, dword [esp + 0x20]
mov cl, byte [ebx + 1]
inc ebx
push edx
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], cl
inc ebx
mov byte [esp + 0x1e], 0
call fcn.0044f2f0
mov edx, dword [esi + 0x28c]
add esp, 4
mov ebp, eax
mov al, byte [esi + 0x414]
lea ecx, [esp + 0x18]
push eax
push ecx
mov cl, byte [esi + 0x288]
lea eax, [esp + 0x34]
push edx
mov dl, byte [esi + 0x289]
push eax
mov al, byte [esi + 0x28a]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x90]
push ecx
push edx
mov ecx, dword [esi + eax*4 + 0x80]
call fcn.0040bbc0
mov edx, dword [esp + 0x1c]
push ebp
add edx, eax
mov dword [esp + 0x20], edx
call fcn.0044f2f0
add esp, 4
jmp 0x413caa
mov dword [esp + 0x24], ebx
mov byte [esp + 0x13], 0
jmp 0x413a83
mov eax, dword [esi + 0x30]
test eax, eax
je 0x413dab
mov ecx, dword [esp + 0x74]
mov eax, dword [esi + 0x34]
cmp ecx, eax
jne 0x413dab
mov ecx, dword [esi + 0x38]
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x1c]
mov edx, dword [esi + 0x3c]
mov ebp, dword [esp + 0x7c]
sub ebx, ecx
sub edi, ecx
mov ecx, dword [esi + 0x28c]
sub ecx, edx
mov eax, ebp
sub eax, edx
lea edx, [esp + 0x34]
lea ecx, [ecx + ebp + 2]
sub ebx, 2
sub eax, 2
add edi, 2
mov dword [esp + 0x40], ecx
mov ecx, dword [0x4ccd64]
push 0
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
call fcn.00448090
mov dword [esp + 0x2c], vtable.CGdiObject.0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x6c], 1
call fcn.0047dadb
pop edi
pop ebx
mov ecx, dword [esp + 0x5c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14