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

Disassembly:
push 0xffffffffffffffff
push 0x59dc58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [esp + 0x8c]
push ebx
push ebp
push esi
mov esi, ecx
cmp eax, 0x64
push edi
mov dword [esp + 0x1c], esi
je 0x50395d
mov ebp, dword [esp + 0x98]
mov edx, dword [esp + 0x90]
sub ebp, edx
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x28], ebp
jle 0x50395d
mov edi, dword [esp + 0x94]
mov edx, dword [esp + 0x8c]
sub edi, edx
cmp edi, ebx
mov dword [esp + 0x2c], edi
jle 0x50395d
cmp dword [0x603868], 8
jg 0x503977
mov ecx, dword [esi + 4]
lea eax, [esp + 0x8c]
push eax
push ecx
call fcn.004cb4f0
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 0x20
cmp dword [esp + 0xa8], 0xffffffff
je 0x50398a
cmp eax, 0x64
jle 0x50398a
xor eax, eax
jmp 0x503962
lea ecx, [esp + 0x40]
call fcn.0055ad94
mov eax, dword [esi + 4]
mov dword [esp + 0x84], ebx
cmp eax, ebx
jne 0x5039a5
xor eax, eax
jmp 0x5039a8
mov eax, dword [eax + 4]
push eax
call dword [0x5e9528]
push eax
lea ecx, [esp + 0x44]
call fcn.0055ae4b
cmp eax, ebx
jne 0x5039d5
lea ecx, [esp + 0x40]
mov dword [esp + 0x84], 0xffffffff
call fcn.0055aec9
xor eax, eax
jmp 0x503962
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], vtable.CBitmap.0
mov eax, dword [esi + 4]
push ebp
push edi
mov byte [esp + 0x8c], 1
mov edx, dword [eax + 4]
push edx
call dword [0x5e954c]
push eax
lea ecx, [esp + 0x3c]
call fcn.0055ba92
cmp eax, ebx
jne 0x503a3a
mov dword [esp + 0x38], vtable.CGdiObject.0
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 2
call fcn.0055bae9
lea ecx, [esp + 0x40]
mov dword [esp + 0x84], 0xffffffff
call fcn.0055aec9
xor eax, eax
jmp 0x503962
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x38]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.0055afc4
mov esi, ebp
push ebx
imul esi, edi
lea ecx, [esp + 0x14]
push ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
push ecx
lea edx, [esp + 0x5c]
push ebx
push edx
push eax
mov dword [esp + 0x68], 0x28
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], ebp
mov word [esp + 0x74], 1
mov word [esp + 0x76], 0x20
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x28], ebx
call dword [0x5e95a0]
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x503e96
cmp dword [esp + 0x10], ebx
je 0x503e96
mov ecx, dword [esp + 0x44]
push eax
push ecx
call dword [0x5e9518]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
cmp eax, ebx
jne 0x503aeb
xor eax, eax
jmp 0x503aee
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push 0xcc0020
push ecx
push edx
push eax
mov eax, dword [esp + 0x54]
push ebp
push edi
push ebx
push ebx
push eax
call dword [0x5e9548]
mov ebx, dword [esp + 0xa0]
cmp ebx, 0xffffffff
je 0x503b3c
xor ecx, ecx
mov cl, bh
mov ch, bl
shr ebx, 0x10
shl ecx, 8
and ebx, 0xff
or ecx, ebx
mov dword [esp + 0xa0], ecx
mov ebx, ecx
test esi, esi
jle 0x503e08
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0xa4]
test esi, esi
mov ecx, dword [edx]
jle 0x503bb7
mov eax, ecx
mov edx, ebx
and eax, 0xff
and edx, 0xff
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
jge 0x503bc6
xor eax, eax
xor edx, edx
mov al, ch
mov dl, bh
and eax, 0xff
and edx, 0xff
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
jge 0x503bc6
mov eax, ecx
mov edx, ebx
shr eax, 0x10
shr edx, 0x10
and eax, 0xff
and edx, 0xff
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
jl 0x503dee
jmp 0x503bc6
xor eax, eax
cmp ecx, ebx
sete al
test eax, eax
jne 0x503dee
mov edx, dword [esp + 0x9c]
or eax, 0xffffffff
cmp edx, eax
jne 0x503c9a
mov ebx, dword [0x603728]
mov edx, ecx
mov eax, ebx
and edx, 0xff
shr eax, 0x10
and eax, 0xff
mov esi, 0xff
lea edx, [eax + edx*2]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 0xff
jg 0x503c10
mov esi, edx
xor edx, edx
xor eax, eax
mov dl, ch
mov al, bh
and edx, 0xff
and eax, 0xff
mov dword [esp + 0x14], 0xff
lea edx, [eax + edx*2]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 0xff
jg 0x503c48
mov dword [esp + 0x14], edx
shr ecx, 0x10
and ecx, 0xff
and ebx, 0xff
mov eax, 0x55555556
lea ecx, [ebx + ecx*2]
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 0xff
jle 0x503c75
mov edx, 0xff
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ah, dl
mov ebx, dword [esp + 0xa0]
mov al, byte [esp + 0x14]
and esi, 0xff
shl eax, 8
or eax, esi
mov dword [ecx], eax
jmp 0x503dee
cmp dword [esp + 0xa8], eax
jne 0x503cd6
fild dword [esp + 0x9c]
fmul qword [0x5b28d0]
fstp qword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push edx
push eax
push edx
push eax
push edx
push ecx
call fcn.005056c0
mov edx, dword [esp + 0x2c]
add esp, 0x1c
mov dword [edx], eax
jmp 0x503dee
mov esi, dword [esp + 0xa8]
mov eax, dword [esp + 0x9c]
mov ebp, dword [0x5e96f8]
mov edi, ecx
xor ebx, ebx
and edi, 0xff
shr esi, 0x10
mov bl, ch
and esi, 0xff
shr ecx, 0x10
sub esi, edi
push 0x64
and ecx, 0xff
push eax
push esi
and ebx, 0xff
mov dword [esp + 0x2c], ecx
call ebp
add eax, edi
cmp eax, 0xff
jle 0x503d2a
mov ebp, 0xff
jmp 0x503d3b
mov ecx, dword [esp + 0x9c]
push 0x64
push ecx
push esi
call ebp
mov ebp, eax
add ebp, edi
mov eax, dword [esp + 0x9c]
xor edx, edx
mov dl, byte [esp + 0xa9]
mov edi, dword [0x5e96f8]
and edx, 0xff
push 0x64
mov esi, edx
push eax
sub esi, ebx
push esi
call edi
add eax, ebx
cmp eax, 0xff
jle 0x503d74
mov dword [esp + 0x14], 0xff
jmp 0x503d87
mov ecx, dword [esp + 0x9c]
push 0x64
push ecx
push esi
call edi
add eax, ebx
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0xa8]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x9c]
and esi, 0xff
sub esi, ebx
push 0x64
push edx
push esi
call edi
add eax, ebx
cmp eax, 0xff
jle 0x503db7
mov eax, 0xff
jmp 0x503dc6
mov eax, dword [esp + 0x9c]
push 0x64
push eax
push esi
call edi
add eax, ebx
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov ch, al
mov ebx, dword [esp + 0xa0]
mov cl, byte [esp + 0x14]
mov edi, dword [esp + 0x2c]
shl ecx, 8
and ebp, 0xff
or ecx, ebp
mov ebp, dword [esp + 0x28]
mov dword [edx], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jne 0x503b48
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x90]
push 0xcc0020
mov ecx, dword [eax + 4]
lea eax, [esp + 0x44]
neg eax
mov ecx, dword [ecx + 4]
push 0
sbb eax, eax
push 0
and eax, esi
push eax
mov eax, dword [esp + 0x9c]
push ebp
push edi
push edx
push eax
push ecx
call dword [0x5e9548]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x503e4e
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x44]
push eax
push edx
call fcn.0055afc4
mov eax, dword [esp + 0x34]
push eax
call dword [0x5e9540]
mov dword [esp + 0x38], vtable.CGdiObject.0
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 4
call fcn.0055bae9
lea ecx, [esp + 0x40]
mov dword [esp + 0x84], 0xffffffff
call fcn.0055aec9
jmp 0x50395d
mov dword [esp + 0x38], vtable.CGdiObject.0
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 3
call fcn.0055bae9
lea ecx, [esp + 0x40]
mov dword [esp + 0x84], 0xffffffff
call fcn.0055aec9
xor eax, eax
jmp 0x503962