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

Disassembly:
push 0xffffffffffffffff
push 0x7c35e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
push edi
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4c], al
call fcn.00404e60
mov cl, byte [esp + 0x13]
mov dword [esp + 0x8c], esi
mov byte [esp + 0x6c], cl
push esi
lea ecx, [esp + 0x70]
call fcn.00404e60
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 1
call fcn.005423d0
mov eax, dword [ebx + 0x314]
mov dword [esp + 0x8c], 2
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ebx + 0x1f4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x314]
cmp ecx, eax
je 0x546102
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
add eax, 0x88
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x3c], edx
mov esi, dword [ecx + 8]
mov dword [esp + 0x40], esi
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x44], ecx
mov edi, dword [eax + 4]
mov esi, dword [eax]
mov ebp, dword [eax + 8]
sub ecx, edx
mov eax, dword [eax + 0xc]
inc edi
sub ecx, 6
mov dword [esp + 0x2c], edi
mov edi, ecx
push edi
push edi
push 0
lea ecx, [esp + 0x44]
add esi, 2
push 0
push ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
call dword [sym.imp.user32.dll_SetRect]
mov edx, dword [esp + 0x18]
mov eax, dword [0x7e565c]
push eax
push 0
lea ebp, [edx + 8]
lea ecx, [esp + 0x50]
push ebp
call fcn.00404c60
mov ecx, dword [ebp + 0x10]
lea esi, [ebp + 0x24]
mov dword [esp + 0x58], ecx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x5c], edx
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x60], eax
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x64], ecx
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x68], edx
mov ecx, dword [esi + 8]
mov edx, dword [0x7e565c]
mov eax, ecx
cmp edx, eax
mov dword [esp + 0x14], eax
jae 0x545e7e
mov dword [esp + 0x14], edx
mov eax, edx
lea edx, [esp + 0x6c]
cmp edx, esi
jne 0x545ea9
mov ecx, dword [0x7e565c]
push ecx
push eax
lea ecx, [esp + 0x74]
call fcn.00404f50
push 0
push 0
lea ecx, [esp + 0x74]
call fcn.00404f50
jmp 0x545f3a
test eax, eax
jbe 0x545ef6
cmp eax, ecx
jne 0x545ef6
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x545ebd
mov ecx, 0x7e5658
cmp byte [ecx - 1], 0xfe
jae 0x545ef6
push 1
lea ecx, [esp + 0x70]
call fcn.00404e60
mov eax, dword [esi + 4]
test eax, eax
jne 0x545eda
mov eax, 0x7e5658
mov dword [esp + 0x70], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x74], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x78], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x545f3a
push 1
push eax
lea ecx, [esp + 0x74]
call fcn.00401b40
test al, al
je 0x545f3a
mov esi, dword [esi + 4]
test esi, esi
jne 0x545f12
mov esi, 0x7e5658
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x70]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x74], eax
mov byte [ecx + eax], 0
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x7c], edx
mov al, byte [ebp + 0x38]
mov byte [esp + 0x80], al
sub al, 2
mov cl, byte [ebp + 0x39]
neg al
sbb eax, eax
mov byte [esp + 0x81], cl
and eax, 4
mov esi, eax
mov eax, dword [esp + 0x68]
cmp eax, 1
jne 0x545fb1
mov edx, dword [esp + 0x60]
mov ecx, ebx
push edx
call fcn.005467b0
mov ebp, eax
lea eax, [esi + ebp]
mov ecx, dword [ebx + eax*4 + 0x2dc]
lea esi, [ebx + eax*4 + 0x2dc]
lea eax, [esp + 0x38]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
imul ebp, edi
mov ecx, dword [esi]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add ebp, edi
mov edx, dword [ecx]
push eax
push ebp
call dword [edx + 0x24]
mov ecx, dword [esi]
mov edx, dword [ecx]
jmp 0x5460af
test byte [esp + 0x60], 1
je 0x545ff1
mov ecx, dword [ebx + esi*4 + 0x2dc]
test ecx, ecx
je 0x545ff1
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
call dword [eax + 0x30]
mov ecx, dword [ebx + esi*4 + 0x2dc]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
push edx
mov eax, dword [ecx]
push ebp
call dword [eax + 0x24]
mov ecx, dword [ebx + esi*4 + 0x2dc]
mov eax, dword [ecx]
call dword [eax + 0x6c]
jmp 0x545ff5
mov ebp, dword [esp + 0x28]
test byte [esp + 0x60], 2
je 0x546032
mov ecx, dword [ebx + esi*4 + 0x2e0]
test ecx, ecx
je 0x546032
mov edx, dword [ecx]
lea eax, [esp + 0x38]
push eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + esi*4 + 0x2e0]
push eax
lea eax, [edi + ebp]
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
mov ecx, dword [ebx + esi*4 + 0x2e0]
mov edx, dword [ecx]
call dword [edx + 0x6c]
test byte [esp + 0x60], 4
je 0x546070
mov ecx, dword [ebx + esi*4 + 0x2e4]
test ecx, ecx
je 0x546070
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
call dword [eax + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebx + esi*4 + 0x2e4]
push edx
lea edx, [ebp + edi*2]
mov eax, dword [ecx]
push edx
call dword [eax + 0x24]
mov ecx, dword [ebx + esi*4 + 0x2e4]
mov eax, dword [ecx]
call dword [eax + 0x6c]
test byte [esp + 0x60], 8
je 0x5460b2
mov ecx, dword [ebx + esi*4 + 0x2e8]
test ecx, ecx
je 0x5460b2
mov edx, dword [ecx]
lea eax, [esp + 0x38]
push eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + esi*4 + 0x2e8]
push eax
lea eax, [ebp + edi*2]
mov edx, dword [ecx]
add edi, eax
push edi
call dword [edx + 0x24]
mov esi, dword [ebx + esi*4 + 0x2e8]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x6c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add edx, 4
mov ecx, dword [eax]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x18], ecx
cmp eax, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
jl 0x545db1
mov eax, dword [esp + 0x70]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x8c], 5
je 0x546146
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x54613d
cmp al, 0xff
je 0x54613d
dec al
mov byte [ecx], al
jmp 0x546146
push 1
lea ecx, [esp + 0x70]
mov dword [esp + 0x90], 3
call fcn.00404e60
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x8c], 0xffffffff
test ecx, ecx
je 0x546181
mov al, byte [ecx - 1]
test al, al
je 0x546177
cmp al, 0xff
je 0x546177
dec al
mov byte [ecx - 1], al
jmp 0x546181
push ecx
call fcn.007a02e0
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
cmp ecx, esi
mov dword [esp + 0x8c], 0xffffffff
je 0x546181
mov al, byte [ecx - 1]
test al, al
je 0x546177
cmp al, 0xff
je 0x546177
dec al
mov byte [ecx - 1], al
jmp 0x546181
dec ecx
push ecx
call fcn.007a02e0
add esp, 4
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret