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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x592d8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x60]
mov edx, dword [ebp + 0x5c]
push esi
push esi
push esi
push eax
push ecx
push edx
lea ecx, [esp + 0xb8]
mov dword [esp + 0x64], ebp
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
call fcn.00548322
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ebp + 0x68]
push 0x3b
push 0x3b
push 0x17
push eax
push ecx
push edx
lea ecx, [esp + 0xa0]
call fcn.00548322
lea eax, [esp + 0x94]
mov dword [esp + 0x14], esi
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.0054800a
push esi
push esi
push esi
lea ecx, [esp + 0xa0]
call fcn.005480b2
push eax
lea ecx, [esp + 0xa4]
call fcn.00548088
push eax
lea ecx, [esp + 0xa8]
call fcn.0054805e
push eax
lea ecx, [esp + 0xac]
call fcn.00548322
mov eax, dword [0x5f9f88]
mov dword [esp + 0x20], eax
mov dword [esp + 0xb8], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x70]
mov byte [esp + 0xb8], 2
call fcn.00566653
mov dword [esp + 0x2c], 0x59a3bc
mov dword [esp + 0x30], esi
push 0x32
push esi
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 4
mov dword [esp + 0x44], 0x32
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
call fcn.005666e6
mov ecx, dword [ebp + 0x74]
mov eax, dword [ecx + 0xc5c]
neg eax
sbb eax, eax
cmp eax, esi
mov dword [esp + 0x44], eax
je 0x5056a0
lea edx, [esp + 0x24]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, dword [ebp + 0x74]
add ecx, 0xc50
call fcn.005673b8
mov edx, dword [esp + 0x20]
cmp dword [edx - 8], 8
jne 0x50569a
push 4
lea eax, [esp + 0x54]
push esi
push eax
lea ecx, [esp + 0x2c]
call fcn.00563982
mov eax, dword [eax]
push eax
call fcn.00550577
add esp, 4
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.0056870c
push 2
lea ecx, [esp + 0x4c]
push 4
push ecx
lea ecx, [esp + 0x2c]
call fcn.00563982
mov eax, dword [eax]
push eax
call fcn.00550577
add esp, 4
lea ecx, [esp + 0x48]
mov edi, eax
call fcn.0056870c
push 2
lea edx, [esp + 0x44]
push 6
push edx
lea ecx, [esp + 0x2c]
call fcn.00563982
mov eax, dword [eax]
push eax
call fcn.00550577
add esp, 4
lea ecx, [esp + 0x40]
mov ebp, eax
call fcn.0056870c
push 0
push 0
push 0
push ebp
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.00548322
fld qword [esp + 0x14]
fcomp qword [esp + 0xa0]
fnstsw ax
test ah, 1
jne 0x505696
fld qword [esp + 0x14]
fcomp qword [esp + 0x88]
fnstsw ax
test ah, 0x41
je 0x505696
mov ecx, dword [esp + 0x34]
xor esi, esi
test ecx, ecx
jle 0x50563d
mov edx, dword [esp + 0x30]
fld qword [edx]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x5055a5
inc esi
add edx, 8
cmp esi, ecx
jl 0x50558b
jmp 0x50563d
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp esi, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
jl 0x5055ca
lea eax, [esi + 1]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x34]
call fcn.0044b880
jmp 0x505609
mov edi, ecx
inc ecx
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x34]
call fcn.0044b880
mov eax, dword [esp + 0x30]
mov ecx, esi
shl ecx, 0x1d
sub ecx, esi
lea edx, [eax + esi*8]
add ecx, edi
lea eax, [eax + esi*8 + 8]
shl ecx, 3
push ecx
push edx
push eax
call fcn.005509e0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
xor edx, edx
lea eax, [ecx + esi*8]
mov dword [eax], edx
mov dword [eax + 4], edx
xor ecx, ecx
lea eax, [esi*8]
fld qword [esp + 0x5c]
mov edx, dword [esp + 0x30]
add eax, 8
fstp qword [eax + edx - 8]
mov edx, ecx
dec ecx
test edx, edx
jne 0x505612
lea eax, [esp + 0x24]
push 1
push eax
push esi
lea ecx, [esp + 0x7c]
call fcn.0056695d
mov ecx, dword [esp + 0x34]
cmp esi, ecx
jne 0x505682
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, ecx
inc ecx
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
call fcn.0044b880
fld qword [esp + 0x64]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x24]
push edx
fstp qword [ecx + esi*8]
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x74]
push eax
call fcn.005668bb
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
xor esi, esi
cmp eax, esi
jne 0x505499
jmp 0x5056a4
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
jmp 0x505686
mov ecx, dword [esp + 0x34]
mov ebx, 0x19
cmp ecx, ebx
jle 0x5056af
mov ebx, ecx
lea edi, [ebp + 0x480]
push ebx
push 2
mov ecx, edi
call fcn.004aad90
test ebx, ebx
jle 0x5057a4
cmp esi, dword [esp + 0x34]
jl 0x50570c
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push esi
push 0
mov ecx, edi
call fcn.004ab260
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push esi
push 1
mov ecx, edi
call fcn.004ab260
jmp 0x50579b
mov ecx, dword [esp + 0x30]
fld qword [ecx + esi*8]
lea ecx, [esp + 0x14]
fstp qword [esp + 0x14]
call fcn.005480b2
push eax
lea ecx, [esp + 0x18]
call fcn.00548088
push eax
lea ecx, [esp + 0x1c]
call fcn.0054805e
push eax
lea edx, [esp + 0x34]
push 0x5eb2ec
push edx
call fcn.00563eb4
fld qword [esp + 0x28]
fcomp qword [esp + 0xa8]
add esp, 0x14
fnstsw ax
test ah, 1
jne 0x505760
mov ebp, 0xff0000
jmp 0x505762
xor ebp, ebp
mov eax, dword [esp + 0x28]
push 0
push 0
push ebp
push 0xffffff
push eax
push esi
push 0
mov ecx, edi
call fcn.004ab260
mov ecx, dword [esp + 0x74]
push 0
push 0
push ebp
mov eax, dword [ecx + esi*4]
push 0xffffff
push eax
push esi
push 1
mov ecx, edi
call fcn.004ab260
mov ebp, dword [esp + 0x4c]
inc esi
cmp esi, ebx
jl 0x5056c7
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x34]
call fcn.0044b880
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x78]
call fcn.005666e6
mov edx, dword [ebp + 0x74]
mov eax, dword [edx + 0xc78]
neg eax
sbb eax, eax
test eax, eax
mov dword [esp + 0x44], eax
je 0x50595e
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, dword [ebp + 0x74]
lea edx, [esp + 0x4c]
push edx
add ecx, 0xc6c
call fcn.005673b8
mov eax, dword [esp + 0x20]
cmp dword [eax - 8], 0x12
jne 0x50594c
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
call fcn.00568481
mov ecx, dword [ebp + 0x74]
call fcn.00448030
fst qword [esp + 0x14]
fcomp qword [esp + 0xa0]
fnstsw ax
test ah, 1
jne 0x50594c
fld qword [esp + 0x14]
fcomp qword [esp + 0x88]
fnstsw ax
test ah, 0x41
je 0x50594c
mov ecx, dword [esp + 0x34]
xor esi, esi
test ecx, ecx
jle 0x50590b
mov edx, dword [esp + 0x30]
fld qword [edx]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x505873
inc esi
add edx, 8
cmp esi, ecx
jl 0x505859
jmp 0x50590b
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp esi, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
jl 0x505898
lea eax, [esi + 1]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x34]
call fcn.0044b880
jmp 0x5058d7
mov edi, ecx
inc ecx
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x34]
call fcn.0044b880
mov eax, dword [esp + 0x30]
mov ecx, esi
shl ecx, 0x1d
sub ecx, esi
lea edx, [eax + esi*8]
add ecx, edi
lea eax, [eax + esi*8 + 8]
shl ecx, 3
push ecx
push edx
push eax
call fcn.005509e0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
xor edx, edx
lea eax, [ecx + esi*8]
mov dword [eax], edx
mov dword [eax + 4], edx
xor ecx, ecx
lea eax, [esi*8]
fld qword [esp + 0x5c]
mov edx, dword [esp + 0x30]
add eax, 8
fstp qword [eax + edx - 8]
mov edx, ecx
dec ecx
test edx, edx
jne 0x5058e0
lea eax, [esp + 0x24]
push 1
push eax
push esi
lea ecx, [esp + 0x7c]
call fcn.0056695d
mov ecx, dword [esp + 0x34]
cmp esi, ecx
jne 0x505950
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, ecx
inc ecx
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
call fcn.0044b880
fld qword [esp + 0x64]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x24]
push edx
fstp qword [ecx + esi*8]
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x74]
push eax
call fcn.005668bb
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x5057d7
jmp 0x505962
mov ecx, dword [esp + 0x34]
mov ebx, 0x19
cmp ecx, ebx
mov dword [esp + 0x48], ebx
jle 0x505975
mov dword [esp + 0x48], ecx
mov ebx, ecx
lea edi, [ebp + 0x61c]
push ebx
push 5
mov ecx, edi
call fcn.004aad90
xor esi, esi
test ebx, ebx
jle 0x505c58
mov bl, 7
cmp esi, dword [esp + 0x34]
jl 0x505a31
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push esi
push 0
mov ecx, edi
call fcn.004ab260
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push esi
push 1
mov ecx, edi
call fcn.004ab260
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push esi
push 2
mov ecx, edi
call fcn.004ab260
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push esi
push 3
mov ecx, edi
call fcn.004ab260
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push esi
push 4
mov ecx, edi
call fcn.004ab260
jmp 0x505c4b
mov eax, dword [0x5f9f88]
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x50]
lea edx, [esp + 0x58]
push ecx
lea eax, [esp + 0x58]
push edx
lea ecx, [esp + 0xb4]
push eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x74]
push edx
push eax
push esi
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], bl
call fcn.00434b30
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
call fcn.00568481
mov ecx, dword [ebp + 0x74]
call fcn.004479d0
mov eax, dword [esp + 0x50]
cmp eax, 1
jne 0x505a9c
mov ebp, 0xff
jmp 0x505aad
xor ecx, ecx
cmp eax, 2
setne cl
dec ecx
and ecx, 0xff0000
mov ebp, ecx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x14]
fld qword [edx + esi*8]
fstp qword [esp + 0x14]
call fcn.005480b2
push eax
lea ecx, [esp + 0x18]
call fcn.00548088
push eax
lea ecx, [esp + 0x1c]
call fcn.0054805e
push eax
lea eax, [esp + 0x34]
push 0x5eb2ec
push eax
call fcn.00563eb4
mov ecx, dword [esp + 0x3c]
add esp, 0x14
push 0
push 0
push ebp
push 0xffffff
push ecx
push esi
push 0
mov ecx, edi
call fcn.004ab260
lea ecx, [esp + 0x14]
call fcn.00548130
push eax
lea ecx, [esp + 0x18]
call fcn.00548106
push eax
lea ecx, [esp + 0x1c]
call fcn.005480dc
push eax
lea edx, [esp + 0x34]
push 0x5f3544
push edx
call fcn.00563eb4
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov ecx, edi
push 0
push 0
push ebp
push 0xffffff
push eax
push esi
push 1
call fcn.004ab260
mov eax, dword [esp + 0x50]
cmp eax, 1
jne 0x505b64
push 0
push 0
push ebp
push 0xffffff
push 0x5eb618
jmp 0x505b7f
push 0
push 0
cmp eax, 2
push ebp
push 0xffffff
jne 0x505b7a
push 0x5eb610
jmp 0x505b7f
push 0x5eb608
push esi
push 2
mov ecx, edi
call fcn.004ab260
mov ecx, dword [esp + 0x40]
push 0
push 0
push ebp
push 0xffffff
push ecx
push esi
push 3
mov ecx, edi
call fcn.004ab260
lea edx, [esp + 0x54]
push 0x5ea618
lea eax, [esp + 0x70]
push edx
push eax
call fcn.005689a1
lea ecx, [esp + 0x58]
lea edx, [esp + 0x84]
push ecx
push eax
push edx
mov byte [esp + 0xc4], 8
call fcn.0056893b
mov eax, dword [eax]
push 0
push 0
push ebp
push 0xffffff
push eax
push esi
push 4
mov ecx, edi
mov byte [esp + 0xd4], 9
call fcn.004ab260
lea ecx, [esp + 0x84]
mov byte [esp + 0xb8], 8
call fcn.0056870c
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb8], bl
call fcn.0056870c
lea ecx, [esp + 0x58]
mov byte [esp + 0xb8], 6
call fcn.0056870c
lea ecx, [esp + 0x54]
mov byte [esp + 0xb8], 5
call fcn.0056870c
lea ecx, [esp + 0x40]
mov byte [esp + 0xb8], 4
call fcn.0056870c
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x505991
mov eax, dword [ebp + 0x49c]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push eax
call esi
mov ecx, dword [ebp + 0x638]
push 1
push 0
push ecx
call esi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], 0x59a3bc
test eax, eax
je 0x505c91
push eax
call fcn.00567b2c
add esp, 4
lea ecx, [esp + 0x70]
mov byte [esp + 0xb8], 2
call fcn.00566686
lea ecx, [esp + 0x28]
mov byte [esp + 0xb8], 1
call fcn.0056870c
lea ecx, [esp + 0x24]
mov byte [esp + 0xb8], 0
call fcn.0056870c
lea ecx, [esp + 0x20]
mov dword [esp + 0xb8], 0xffffffff
call fcn.0056870c
mov ecx, dword [esp + 0xb0]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret