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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x2c], ebx
mov esi, ecx
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x509fc2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x50], eax
push esi
lea esi, [ebp - 0x60]
lea edi, [ebp - 0x70]
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 esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
call fcn.00522850
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xd4]
test eax, eax
je 0x509f99
mov ebx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
call fcn.004043d8
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x14], 0
je 0x5098cf
mov dword [ebp - 0x24], esi
jmp 0x5098e8
mov dl, 1
mov eax, dword [0x422118]
call fcn.0042857c
mov dword [ebp - 0x24], eax
mov edx, esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
call fcn.00428b44
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x78]
mov edx, dword [edx + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x40], 0
jl 0x509937
imul eax, dword [ebp - 0x40], 0x43
mov edx, dword [ebp - 0x48]
mov edx, dword [edx + 0xc8]
mov eax, dword [edx + eax*4 + 8]
dec eax
mov edx, 1
call fcn.0042ad60
push eax
mov eax, dword [ebp - 0x18]
call fcn.004a2bf0
pop edx
call fcn.0042ad60
mov dword [ebp - 0x44], eax
jmp 0x50993c
xor eax, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
xor edx, edx
call fcn.004a3220
test al, al
jne 0x50996b
mov eax, dword [ebp - 0x24]
call fcn.00428b44
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x78]
mov edx, dword [edx + 4]
mov edx, dword [edx + 0x18]
call fcn.004230c4
jmp 0x50999f
cmp dword [ebp - 0x40], 0
jl 0x50999f
mov eax, dword [ebp - 0x24]
call fcn.00428b44
mov eax, dword [eax + 0xc]
imul edx, dword [ebp - 0x40], 0x43
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0xc8]
lea edx, [ecx + edx*4]
mov ecx, dword [ebp - 0x44]
mov edi, ecx
shl ecx, 3
sub ecx, edi
mov edx, dword [edx + ecx*8 + 0x10]
call fcn.004230c4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
mov edx, 1
call fcn.004a3220
test al, al
jne 0x5099df
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 4]
call fcn.004232d4
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00428b44
mov eax, dword [eax + 0xc]
pop edx
call fcn.004232ec
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
mov edx, 2
call fcn.004a3220
test al, al
jne 0x509a0d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x3c], eax
jmp 0x509a54
cmp dword [ebp - 0x40], 0
jl 0x509a4a
imul eax, dword [ebp - 0x40], 0x43
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0xc8]
lea ecx, [ecx + eax*4]
mov edx, dword [ebp - 0x44]
mov edi, edx
shl edx, 3
sub edx, edi
movzx ecx, byte [ecx + edx*8 + 0x3c]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0xc8]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edx*8 + 0x38]
mov dword [ebp - 0x3c], eax
jmp 0x509a54
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
mov edx, 3
call fcn.004a3220
test al, al
jne 0x509a88
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 4]
call fcn.004232a4
push eax
mov eax, dword [ebp - 0x24]
call fcn.00428b44
mov eax, dword [eax + 0xc]
pop edx
call fcn.004232ac
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
mov edx, 4
call fcn.004a3220
test al, al
jne 0x509abc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 4]
call fcn.00423384
push eax
mov eax, dword [ebp - 0x24]
call fcn.00428b44
mov eax, dword [eax + 0xc]
pop edx
call fcn.00423390
mov eax, dword [0x52b224]
cmp byte [eax], 0
je 0x509ae1
mov eax, dword [ebp - 0x24]
call fcn.00428b44
mov eax, dword [eax + 0xc]
push eax
call fcn.0042a648
mov edx, eax
pop eax
call fcn.004233f4
jmp 0x509b04
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x244]
mov eax, dword [eax + 0x68]
call fcn.004233ec
push eax
mov eax, dword [ebp - 0x24]
call fcn.00428b44
mov eax, dword [eax + 0xc]
pop edx
call fcn.004233f4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
cmp esi, dword [eax + 0x44]
je 0x509b1e
push 0
xor ecx, ecx
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x24]
call fcn.004cf1d8
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x30]
sub al, 1
jb 0x509e02
je 0x509b3b
dec al
je 0x509cab
jmp 0x509f5d
cmp dword [ebp - 0x40], 0
jge 0x509c4b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xa8]
add eax, 0x68
xor edx, edx
call fcn.0051234c
sub eax, 2
cmp eax, dword [ebp - 0x50]
jge 0x509b6c
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xa8]
mov ebx, dword [eax + 0x78]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, 3
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebp - 0x18]
call fcn.004a2bf0
imul edi, eax
mov dword [ebp - 0x80], edi
xor eax, eax
mov dword [ebp - 0x7c], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, 3
cdq
idiv ecx
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x78], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x80]
push eax
push 4
lea eax, [ebp - 0x94]
push eax
mov ecx, 8
mov edx, 2
mov eax, 8
call fcn.004066d0
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xa8]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp - 0x24]
call fcn.004a2010
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
xor edx, edx
call fcn.004a3220
test al, al
je 0x509c20
mov eax, dword [ebp - 0x24]
call fcn.00428b44
mov eax, dword [eax + 0xc]
mov edx, 0xffffff
call fcn.004230c4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
mov edx, 2
call fcn.004a3220
test al, al
je 0x509f6a
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x3c], 0xe5a8d
jmp 0x509f6a
push 1
mov eax, dword [ebp - 0x18]
call fcn.004a2bf0
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x9c]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
call fcn.004066ec
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x44]
xor ecx, ecx
xor edx, edx
call fcn.00512700
lea ecx, [ebp - 0xb0]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
call fcn.0050972c
jmp 0x509f6a
mov eax, dword [ebp - 0x18]
call fcn.004a2bf0
mov edx, 1
call fcn.0042ad60
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xa8]
add eax, 0x68
xor edx, edx
call fcn.0051234c
sub eax, 2
cmp eax, dword [ebp - 0x50]
jge 0x509ce7
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x40], 0
jl 0x509dd7
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x70], 0
jne 0x509d16
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x70]
push eax
call sub.user32.dll_InflateRect
lea eax, [ebp - 0x70]
mov ecx, 1
xor edx, edx
call fcn.00406730
push 1
mov eax, dword [ebp - 0x18]
call fcn.004a2bf0
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x9c]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
call fcn.004066ec
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0xb0]
push eax
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00512700
lea ecx, [ebp - 0xb0]
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x40]
call fcn.0050972c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
mov edx, 2
call fcn.004a3220
test al, al
je 0x509dd7
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.0042ad60
mov edx, eax
shl eax, 3
sub eax, edx
imul edx, dword [ebp - 0x40], 0x43
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0xc8]
lea edx, [ecx + edx*4]
movzx eax, byte [edx + eax*8 + 0x3c]
mov dword [ebp - 0x38], eax
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.0042ad60
mov edx, eax
shl eax, 3
sub eax, edx
imul edx, dword [ebp - 0x40], 0x43
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0xc8]
lea edx, [ecx + edx*4]
mov eax, dword [edx + eax*8 + 0x38]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x70]
xor edx, edx
call fcn.00512338
mov edx, dword [ebp - 0x18]
mov ebx, dword [edx + 0xa8]
sub eax, ebx
dec eax
sar eax, 1
jns 0x509df4
adc eax, 0
add dword [ebp - 0x70], eax
add ebx, dword [ebp - 0x70]
mov dword [ebp - 0x68], ebx
jmp 0x509f6a
push 1
mov eax, dword [ebp - 0x18]
call fcn.004a2bf0
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x9c]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
call fcn.004066ec
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0xb0]
push eax
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00512700
lea ecx, [ebp - 0xb0]
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x40]
call fcn.0050972c
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xb0], 0
jne 0x509f6a
mov eax, dword [ebp - 0x18]
call fcn.004a2bf0
test eax, eax
jne 0x509f6a
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x23c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
xor edx, edx
call fcn.004a3220
test al, al
je 0x509ed7
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.0042ad60
mov ebx, eax
shl ebx, 3
sub ebx, eax
mov eax, dword [ebp - 0x14]
call fcn.005086dc
imul eax, eax, 0x43
mov edx, dword [ebp - 0x48]
mov edx, dword [edx + 0xc8]
lea eax, [edx + eax*4]
mov eax, dword [eax + ebx*8 + 0x10]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00428b44
mov eax, dword [eax + 0xc]
pop edx
call fcn.004230c4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
mov edx, 2
call fcn.004a3220
test al, al
je 0x509f50
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.0042ad60
mov ebx, eax
shl ebx, 3
sub ebx, eax
mov eax, dword [ebp - 0x14]
call fcn.005086dc
imul eax, eax, 0x43
mov edx, dword [ebp - 0x48]
mov edx, dword [edx + 0xc8]
lea eax, [edx + eax*4]
movzx eax, byte [eax + ebx*8 + 0x3c]
mov dword [ebp - 0x38], eax
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.0042ad60
mov ebx, eax
shl ebx, 3
sub ebx, eax
mov eax, dword [ebp - 0x14]
call fcn.005086dc
imul eax, eax, 0x43
mov edx, dword [ebp - 0x48]
mov edx, dword [edx + 0xc8]
lea eax, [edx + eax*4]
mov eax, dword [eax + ebx*8 + 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
call fcn.005086dc
mov dword [ebp - 0x40], eax
jmp 0x509f6a
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x23c]
mov dword [ebp - 0x44], eax
push ebp
lea eax, [ebp - 0x70]
call fcn.005091bc
pop ecx
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x14], 0
jne 0x509f99
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x60]
push eax
mov cl, 0x80
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.004e9150
mov eax, dword [ebp - 0x24]
call fcn.0040356c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509fc9
lea eax, [ebp - 0x84]
call fcn.00404340
lea eax, [ebp - 0x4c]
call fcn.00404340
lea eax, [ebp - 0x2c]
call fcn.00404340
ret