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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff8c
mov esi, eax
mov eax, dword [esi + 0x78]
mov dword [esp + 0x1c], eax
mov eax, esi
call fcn.005084f0
test al, al
je 0x5004c8
push esi
add esi, 0x48
lea edi, [esp + 0x28]
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 [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x50018d
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
call fcn.00435eb0
cmp al, 7
je 0x4fff61
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov dl, 7
call fcn.00436fa4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebx, eax
dec ebx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
call fcn.004d7f60
test al, al
je 0x4fff61
test ebx, ebx
jl 0x4fff61
inc ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x14]
imul edi, dword [esp + 0xc]
add edi, dword [esp + 4]
mov edx, dword [esp + 0x10]
test edx, edx
jl 0x4fff57
inc edx
xor eax, eax
lea ecx, [edi + eax*4]
mov ebx, dword [0x555c8c]
mov ebx, dword [ebx]
cmp ebx, dword [edi + eax*4]
je 0x4fff53
mov byte [ecx + 3], 0xff
inc eax
dec edx
jne 0x4fff3f
inc dword [esp + 0xc]
dec dword [esp + 0x20]
jne 0x4fff27
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov edx, 0xff00ff
call fcn.0043710c
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ebx, eax
mov eax, esi
call fcn.0050827c
sub eax, 2
push eax
mov eax, dword [esi + 0x244]
call fcn.00534464
mov eax, dword [eax + 0x788c]
lea edx, [eax + 0x58]
pop eax
sub eax, dword [edx]
call fcn.004ffd18
imul ebx, eax
mov dword [esp + 0x34], ebx
fild dword [esp + 0x34]
fstp xword [esp + 0x38]
wait
mov eax, esi
call fcn.0050827c
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fld xword [esp + 0x38]
fdivrp st(1)
fsub dword [0x5004d0]
fstp xword [esp + 0x48]
wait
mov eax, dword [esi + 0x244]
call fcn.00534464
mov eax, dword [eax + 0x788c]
fild dword [eax + 0x58]
fld xword [esp + 0x48]
fsubrp st(1)
call fcn.004034c0
mov edx, eax
mov eax, dword [esp + 0x1c]
cmp dword [eax + 8], 0
sete al
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 8]
call fcn.0051eba8
mov ebp, eax
mov eax, esi
call fcn.0050827c
sub eax, 2
push eax
mov eax, dword [esi + 0x244]
call fcn.00534464
mov eax, dword [eax + 0x788c]
lea edx, [eax + 0x58]
pop eax
sub eax, dword [edx]
call fcn.004ffd18
mov edx, eax
mov eax, dword [esp + 0x1c]
cmp dword [eax + 4], 0
sete al
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
call fcn.0051eba8
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
call fcn.00435eb0
cmp al, 7
jne 0x50014b
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0x30]
cmp ebp, eax
je 0x500095
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0x24]
cmp ebx, eax
jne 0x500107
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [0x555a78]
push eax
push 0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0x24]
add eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
add ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
call fcn.004083e8
lea eax, [esp + 0x60]
push eax
lea edx, [esp + 0x74]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x10]
call fcn.0051ed68
lea edx, [esp + 0x74]
mov eax, dword [esi + 0x244]
mov ecx, dword [eax + 0x4c]
pop eax
call fcn.004defd4
jmp 0x5004c8
push 0
add ebx, dword [esp + 0x2c]
push ebx
lea eax, [esp + 0x5c]
push eax
mov ecx, dword [esp + 0x30]
add ecx, ebp
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
call fcn.004083e8
lea eax, [esp + 0x58]
push eax
mov eax, dword [esi + 0x244]
mov eax, dword [eax + 0x4c]
call fcn.00435dc4
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 0x10]
pop ecx
call fcn.004d8398
jmp 0x5004c8
add ebx, dword [esp + 0x28]
push ebx
lea eax, [esp + 0x58]
push eax
mov ecx, dword [esp + 0x2c]
add ecx, ebp
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
call fcn.004083e8
lea eax, [esp + 0x54]
push eax
mov eax, dword [esi + 0x244]
mov eax, dword [eax + 0x4c]
call fcn.00435dc4
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x10]
pop edx
call fcn.00430e34
jmp 0x5004c8
lea eax, [esp + 0x24]
call fcn.004e1964
mov dword [esp], eax
push 0xcc0020
mov edi, dword [esp + 0x2c]
push edi
mov ebx, dword [esp + 0x2c]
push ebx
mov eax, dword [esi + 0x244]
mov eax, dword [eax + 0x4c]
call fcn.00435dc4
call fcn.00431368
push eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [esp + 0x20]
call fcn.00435dc4
call fcn.00431368
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [esi + 0x25c]
mov eax, dword [eax + 0x298]
call fcn.004376d4
test eax, eax
je 0x500249
push 3
push 0
push 0
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
mov eax, dword [esi + 0x25c]
mov eax, dword [eax + 0x298]
call fcn.004376d4
push eax
push edi
push ebx
mov eax, dword [esi + 0x244]
mov eax, dword [eax + 0x4c]
call fcn.00435dc4
call fcn.00431368
push eax
call sub.user32.dll_DrawIconEx
jmp 0x500418
mov eax, dword [0x555c10]
mov eax, dword [eax]
mov eax, dword [eax + 0x9c]
call fcn.004376d4
test eax, eax
je 0x5002da
push 0
mov eax, dword [esp + 4]
mov edx, dword [eax]
call dword [edx + 0x24]
cmp eax, 0x10
setg al
mov ecx, 2
mov edx, 1
call fcn.0051eba8
push eax
push 0x7f
mov eax, dword [0x555c10]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_SendMessageW
mov ebp, eax
test ebp, ebp
je 0x500418
push 3
push 0
push 0
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push ebp
push edi
push ebx
mov eax, dword [esi + 0x244]
mov eax, dword [eax + 0x4c]
call fcn.00435dc4
call fcn.00431368
push eax
call sub.user32.dll_DrawIconEx
jmp 0x500418
mov dl, 1
mov eax, esi
call fcn.00500848
mov edx, eax
sub edx, dword [esp + 0x28]
mov eax, 0x10
call fcn.00409e38
mov edx, eax
mov eax, dword [esi + 0x78]
cmp dword [eax + 8], 0
sete al
mov ecx, dword [esi + 0x78]
mov ecx, dword [ecx + 8]
call fcn.0051eba8
mov ebp, eax
mov dl, 1
mov eax, esi
call fcn.00500848
mov edx, eax
sub edx, dword [esp + 0x28]
mov eax, 0x10
call fcn.00409e38
mov edx, eax
mov eax, dword [esi + 0x78]
cmp dword [eax + 4], 0
sete al
mov ecx, dword [esi + 0x78]
mov ecx, dword [ecx + 4]
call fcn.0051eba8
mov ebx, eax
cmp ebx, 0x10
jle 0x50038a
mov eax, dword [0x555848]
cmp dword [eax], 0
je 0x50038a
push 3
push 0
push 0
push ebx
push ebp
mov eax, dword [0x555848]
mov eax, dword [eax]
call fcn.004376d4
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esi + 0x244]
mov eax, dword [eax + 0x4c]
call fcn.00435dc4
call fcn.00431368
push eax
call sub.user32.dll_DrawIconEx
jmp 0x500418
mov eax, dword [0x555cb4]
cmp dword [eax], 0
je 0x5003ce
push 3
push 0
push 0
push ebx
push ebp
mov eax, dword [0x555cb4]
mov eax, dword [eax]
call fcn.004376d4
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esi + 0x244]
mov eax, dword [eax + 0x4c]
call fcn.00435dc4
call fcn.00431368
push eax
call sub.user32.dll_DrawIconEx
jmp 0x500418
push 3
push 0
push 0
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0x7f00
push 0
call sub.user32.dll_LoadIconW
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esi + 0x244]
mov eax, dword [eax + 0x4c]
call fcn.00435dc4
call fcn.00431368
push eax
call sub.user32.dll_DrawIconEx
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebx, eax
dec ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
mov eax, dword [esp]
call fcn.004d7f60
test al, al
je 0x5004c1
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
mov eax, dword [esi + 0x244]
mov eax, dword [eax + 0x4c]
call fcn.004d7f60
test al, al
je 0x5004c1
test ebx, ebx
jl 0x5004c1
inc ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x14]
imul edi, dword [esp + 0xc]
add edi, dword [esp + 4]
mov esi, dword [esp + 0xc]
add esi, dword [esp + 0x28]
imul esi, dword [esp + 0x18]
add esi, dword [esp + 8]
mov edx, dword [esp + 0x10]
test edx, edx
jl 0x5004b7
inc edx
xor eax, eax
mov ecx, dword [esp + 0x24]
add ecx, eax
lea ecx, [esi + ecx*4]
mov ebx, dword [edi + eax*4]
cmp ebx, dword [ecx]
je 0x5004ae
mov byte [ecx + 3], 0xff
jmp 0x5004b3
mov ebx, dword [edi + eax*4]
mov dword [ecx], ebx
inc eax
dec edx
jne 0x500498
inc dword [esp + 0xc]
dec dword [esp + 0x20]
jne 0x50046f
mov eax, esp
call fcn.004128f0
add esp, 0x74
pop ebp
pop edi
pop esi
pop ebx
ret