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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff80
mov dword [esp], edx
mov ebx, eax
cmp dword [ebx + 0x48], 0
jle 0x50dffa
cmp dword [ebx + 0x4c], 0
jle 0x50dffa
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp dword [ebx + 0x239], 0xffffffff
je 0x50df6f
cmp dword [ebx + 0x2bf], 0
je 0x50df6f
mov dl, 1
mov eax, dword [0x4259a0]
call fcn.0042b8e4
mov edi, eax
mov edx, dword [ebx + 0x48]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebx + 0x4c]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov esi, dword [ebx + 0x28f]
test esi, esi
je 0x50d8fa
mov eax, dword [ebx + 0x2bf]
cmp byte [eax + 0x5c], 0
je 0x50d83e
cmp dword [ebx + 0x293], 0
jne 0x50d805
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x74]
push eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041bd30
lea eax, [esp + 0x70]
push eax
mov eax, edi
call fcn.0042beac
mov ecx, dword [ebx + 0x28f]
pop edx
call fcn.004276d4
jmp 0x50d8fa
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x74]
push eax
mov ecx, dword [ebx + 0x27f]
xor edx, edx
xor eax, eax
call fcn.0041bd30
lea eax, [esp + 0x70]
push eax
mov eax, edi
call fcn.0042beac
mov ecx, dword [ebx + 0x28f]
pop edx
call fcn.004276d4
jmp 0x50d8fa
cmp dword [ebx + 0x293], 0
jne 0x50d865
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebx + 0x28f]
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
mov esi, eax
jmp 0x50d87b
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebx + 0x27f]
pop edx
mov ecx, edx
cdq
idiv ecx
mov esi, eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x28f]
mov edx, dword [eax]
call dword [edx + 0x20]
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0xc], eax
test esi, esi
jl 0x50d8fa
inc esi
mov dword [esp + 4], 0
mov ebp, dword [esp + 0xc]
test ebp, ebp
jl 0x50d8f3
inc ebp
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x28f]
push eax
mov eax, dword [ebx + 0x28f]
mov edx, dword [eax]
call dword [edx + 0x20]
imul dword [esp + 0xc]
push eax
mov eax, dword [ebx + 0x28f]
mov edx, dword [eax]
call dword [edx + 0x2c]
imul dword [esp + 0xc]
push eax
mov eax, edi
call fcn.0042beac
pop edx
pop ecx
call fcn.00427410
inc dword [esp + 8]
dec ebp
jne 0x50d8b7
inc dword [esp + 4]
dec esi
jne 0x50d8a6
cmp dword [ebx + 0x293], 0
je 0x50d9fa
mov eax, dword [ebx + 0x2bf]
cmp byte [eax + 0x61], 0
je 0x50d953
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x74]
push eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
mov eax, dword [ebx + 0x27f]
call fcn.0041bd30
lea eax, [esp + 0x70]
push eax
mov eax, edi
call fcn.0042beac
mov ecx, dword [ebx + 0x293]
pop edx
call fcn.004276d4
jmp 0x50d9fa
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebx + 0x27f]
push eax
mov eax, dword [ebx + 0x293]
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
mov esi, eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x28f]
mov edx, dword [eax]
call dword [edx + 0x20]
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0xc], eax
test esi, esi
jl 0x50d9fa
inc esi
mov dword [esp + 4], 0
mov ebp, dword [esp + 0xc]
test ebp, ebp
jl 0x50d9f3
inc ebp
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x293]
push eax
mov eax, dword [ebx + 0x28f]
mov edx, dword [eax]
call dword [edx + 0x20]
imul dword [esp + 0xc]
push eax
mov eax, dword [ebx + 0x28f]
mov edx, dword [eax]
call dword [edx + 0x2c]
imul dword [esp + 0xc]
add eax, dword [ebx + 0x27f]
push eax
mov eax, edi
call fcn.0042beac
pop edx
pop ecx
call fcn.00427410
inc dword [esp + 8]
dec ebp
jne 0x50d9b1
inc dword [esp + 4]
dec esi
jne 0x50d9a0
lea edx, [esp + 0x60]
mov eax, ebx
call fcn.0050d6f0
lea eax, [esp + 0x60]
call fcn.00529d7c
test al, al
jne 0x50dc8b
mov esi, dword [ebx + 0x2bf]
mov ebp, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
mov dword [esp + 0x14], eax
lea eax, [esi + 0x10]
call fcn.00529f50
sub eax, dword [esi + 0x48]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x10]
call fcn.00529f6c
sub eax, dword [esi + 0x4c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x74]
push eax
mov ecx, dword [esp + 0x70]
add ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x6c]
sub edx, ebp
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x1c]
call fcn.0041bd30
push esi
push edi
lea esi, [esp + 0x78]
lea edi, [esp + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [esp + 0x60]
call fcn.00529f50
mov ebp, eax
lea eax, [esi + 0x10]
call fcn.00529f50
sub ebp, eax
lea eax, [esp + 0x60]
call fcn.00529f6c
push eax
lea eax, [esi + 0x10]
call fcn.00529f6c
pop edx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x28]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
add eax, ebp
call fcn.0041bd08
lea ecx, [esp + 0x30]
mov edx, dword [esi + 0x34]
add edx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
call fcn.0041bd08
lea ecx, [esp + 0x38]
mov edx, dword [esi + 0x3c]
add edx, dword [esp + 0x10]
mov eax, dword [esi + 0x38]
add eax, ebp
call fcn.0041bd08
mov eax, dword [esi + 0x4c]
add eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x54]
push eax
mov ecx, dword [esi + 0x48]
add ecx, ebp
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
call fcn.0041bd30
mov dl, 1
mov eax, dword [0x4259a0]
call fcn.0042b8e4
mov dword [esp + 0x40], eax
mov dl, 1
mov eax, dword [0x4259a0]
call fcn.0042b8e4
mov esi, eax
mov dl, 1
mov eax, dword [0x4259a0]
call fcn.0042b8e4
mov dword [esp + 0x44], eax
mov dl, 1
mov eax, dword [0x4259a0]
call fcn.0042b8e4
mov dword [esp + 0x48], eax
mov ebp, dword [ebx + 0x2bf]
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x40]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x5c]
push eax
push esi
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [ebx + 0x28b]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [esp + 0x94]
call fcn.00529f50
push eax
lea eax, [esp + 0x98]
call fcn.00529f6c
push eax
mov al, byte [ebp + 0x52]
push eax
mov al, byte [ebp + 0x53]
push eax
mov al, byte [ebp + 0x54]
push eax
mov al, byte [ebp + 0x55]
push eax
lea ecx, [ebp + 0x30]
lea edx, [ebp + 0x28]
lea eax, [ebp + 0x20]
call fcn.0052dfa4
push esi
mov eax, edi
call fcn.0042beac
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
call fcn.00427410
mov eax, dword [esp + 0x40]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [esp + 0x68]
push eax
mov eax, edi
call fcn.0042beac
mov edx, dword [esp + 0x68]
pop ecx
call fcn.00427410
mov eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0x64]
call fcn.00529f50
mov ebp, eax
add ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub ebp, eax
push ebp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [esp + 0x6c]
push eax
mov eax, edi
call fcn.0042beac
pop ecx
pop edx
call fcn.00427410
mov eax, dword [esp + 0x48]
push eax
lea eax, [esp + 0x64]
call fcn.00529f6c
mov ebp, eax
add ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x20]
sub ebp, eax
push ebp
mov eax, edi
call fcn.0042beac
mov edx, dword [esp + 0x68]
pop ecx
call fcn.00427410
mov eax, dword [esp + 0x40]
call fcn.004034d4
mov eax, esi
call fcn.004034d4
mov eax, dword [esp + 0x44]
call fcn.004034d4
mov eax, dword [esp + 0x48]
call fcn.004034d4
mov eax, ebx
call fcn.0050ce00
lea eax, [ebx + 0x24c]
call fcn.00529d7c
test al, al
jne 0x50dd16
cmp byte [ebx + 0x25c], 0
je 0x50dceb
mov eax, dword [ebx + 0x2bf]
add eax, 0x103
call fcn.00529d7c
test al, al
jne 0x50dceb
mov eax, dword [ebx + 0x2bf]
add eax, 0x103
push eax
mov eax, dword [ebx + 0x28b]
call fcn.0042beac
push eax
mov eax, edi
call fcn.0042beac
lea edx, [ebx + 0x24c]
pop ecx
call fcn.00427388
jmp 0x50dd16
mov eax, dword [ebx + 0x2bf]
add eax, 0xf3
push eax
mov eax, dword [ebx + 0x28b]
call fcn.0042beac
push eax
mov eax, edi
call fcn.0042beac
lea edx, [ebx + 0x24c]
pop ecx
call fcn.00427388
xor eax, eax
mov dword [esp + 0x4c], eax
lea eax, [ebx + 0x24c]
call fcn.00529d7c
test al, al
jne 0x50dd68
mov eax, edi
call fcn.0042beac
call fcn.004279c0
push eax
call sub.gdi32.dll_SaveDC
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x258]
add eax, 2
push eax
mov eax, dword [ebx + 0x27f]
push eax
push 0
push 0
mov eax, edi
call fcn.0042beac
call fcn.004279c0
push eax
call sub.gdi32.dll_ExcludeClipRect
mov eax, dword [ebx + 0x267]
call fcn.0041df48
mov esi, eax
dec esi
test esi, esi
jl 0x50dda6
inc esi
xor ebp, ebp
mov edx, ebp
mov eax, dword [ebx + 0x267]
call fcn.0050a554
cmp byte [eax + 0x18], 0
je 0x50dda2
mov eax, edi
call fcn.0042beac
mov edx, eax
mov ecx, ebp
mov eax, ebx
call fcn.0050e05c
inc ebp
dec esi
jne 0x50dd7d
cmp dword [esp + 0x4c], 0
je 0x50ddc4
mov eax, dword [esp + 0x4c]
push eax
mov eax, edi
call fcn.0042beac
call fcn.004279c0
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebx + 0x2bf]
add eax, 0xdb
call fcn.00529d7c
test al, al
jne 0x50de5e
mov dl, 1
mov eax, dword [0x4259a0]
call fcn.0042b8e4
mov esi, eax
mov edx, dword [ebx + 0x48]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebx + 0x2bf]
add eax, 0xdb
call fcn.00529f6c
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ebp, dword [ebx + 0x2bf]
mov eax, dword [ebx + 0x28b]
push eax
lea eax, [ebp + 0xdb]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
push 1
mov edx, dword [ebp + 0xef]
mov eax, dword [ebp + 0xeb]
mov ecx, esi
call fcn.0052aff8
push esi
mov eax, edi
call fcn.0042beac
xor ecx, ecx
xor edx, edx
call fcn.00427410
mov eax, esi
call fcn.004034d4
mov eax, ebx
call fcn.0050c1c0
test al, al
je 0x50df55
mov ebp, dword [ebx + 0x2bf]
mov dl, 1
mov eax, dword [0x4259a0]
call fcn.0042b8e4
mov esi, eax
lea eax, [ebp + 0xc7]
call fcn.00529f50
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea eax, [ebp + 0xc7]
call fcn.00529f6c
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp + 0xc7]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x78]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041bd30
lea eax, [esp + 0x74]
push eax
mov eax, dword [ebx + 0x28b]
call fcn.0042beac
push eax
mov eax, esi
call fcn.0042beac
pop ecx
pop edx
call fcn.00427388
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ebx, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
sub ebx, eax
mov dword [esp + 4], ebx
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
mov ebx, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
sub ebx, eax
mov dword [esp + 8], ebx
mov dl, 1
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov dl, 1
mov eax, esi
call fcn.0042d014
mov edx, dword [ebp + 0xd7]
mov eax, esi
call fcn.0042cfc4
push esi
mov eax, edi
call fcn.0042beac
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
call fcn.00427410
mov eax, esi
call fcn.004034d4
push edi
xor ecx, ecx
xor edx, edx
mov eax, dword [esp + 4]
call fcn.00427410
mov eax, edi
call fcn.004034d4
jmp 0x50dffa
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + 0x68]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00427234
mov eax, dword [esp]
mov eax, dword [eax + 0x14]
mov edx, 0xff000010
call fcn.00427118
mov eax, dword [ebx + 0x4c]
push eax
lea eax, [esp + 0x74]
push eax
mov ecx, dword [ebx + 0x48]
xor edx, edx
xor eax, eax
call fcn.0041bd30
lea edx, [esp + 0x70]
mov eax, dword [esp]
call fcn.00427504
mov eax, ebx
call fcn.0050ce00
mov eax, dword [ebx + 0x267]
call fcn.0041df48
mov esi, eax
dec esi
test esi, esi
jl 0x50dffa
inc esi
xor ebp, ebp
mov edx, ebp
mov eax, dword [ebx + 0x267]
call fcn.0050a554
cmp byte [eax + 0x18], 0
je 0x50dff6
mov ecx, ebp
mov edx, dword [esp]
mov eax, ebx
call fcn.0050eab4
inc ebp
dec esi
jne 0x50dfd7
add esp, 0x80
pop ebp
pop edi
pop esi
pop ebx
ret