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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x54d669
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x54da7a
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, byte [ebx + 0x1c]
cmp eax, 0x17
ja case.0x54d698.0
jmp dword [eax*4 + 0x54d69f]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x28]
jmp case.0x54d698.0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x30]
jmp case.0x54d698.0
lea edx, [ebp - 4]
lea eax, [ebx + 0x20]
call fcn.0047cde0
cmp byte [ebp + 8], 0
je 0x54d74f
mov edx, 0x54da98
mov eax, dword [ebp - 4]
call fcn.00455300
test al, al
je 0x54d74f
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0054d314
jmp case.0x54d698.0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x54d698.0
lea edx, [ebp - 0x44]
lea eax, [ebx + 0x20]
call fcn.0047cde0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp case.0x54d698.0
lea eax, [ebx + 0x20]
call fcn.0047bb88
test al, al
je 0x54d795
xor edx, edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x24]
jmp case.0x54d698.0
lea edx, [ebp - 0x48]
lea eax, [ebx + 0x20]
call fcn.0047cde0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x24]
jmp case.0x54d698.0
lea edx, [ebp - 0x4c]
lea eax, [ebx + 0x20]
call fcn.0047cde0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x50]
jmp case.0x54d698.0
lea eax, [ebx + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
cmp byte [eax], 1
jne 0x54d7f2
lea eax, [ebx + 0x20]
call fcn.0047cb54
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp case.0x54d698.0
lea eax, [ebx + 0x20]
call fcn.0047cc9c
push edx
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x64]
jmp case.0x54d698.0
lea eax, [ebx + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
mov eax, 0x72f81c
call fcn.00487d74
call fcn.00492098
sub al, 1
jb 0x54d836
je 0x54d852
dec al
je 0x54d871
sub al, 2
je 0x54d871
jmp case.0x54d698.0
lea eax, [ebx + 0x20]
call fcn.0047cc08
fstp dword [ebp - 0x10]
wait
push dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x6c]
jmp case.0x54d698.0
lea eax, [ebx + 0x20]
call fcn.0047cc08
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x70]
jmp case.0x54d698.0
lea eax, [ebx + 0x20]
call fcn.0047cc08
fstp xword [ebp - 0x30]
wait
movzx eax, word [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x74]
jmp case.0x54d698.0
lea edx, [ebp - 0x50]
lea eax, [ebx + 0x20]
call fcn.0047cde0
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x58]
jmp case.0x54d698.0
lea eax, [ebx + 0x20]
call fcn.0047cbcc
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x78]
jmp case.0x54d698.0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
jmp case.0x54d698.0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x54]
jmp case.0x54d698.0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x2c]
jmp case.0x54d698.0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x34]
jmp case.0x54d698.0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x3c]
jmp case.0x54d698.0
lea eax, [ebx + 0x20]
call fcn.0047cc08
fstp qword [ebp - 0x38]
wait
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x84]
jmp case.0x54d698.0
lea ecx, [ebp - 0x54]
lea eax, [ebx + 0x20]
mov dl, 1
call fcn.0054b1c4
mov edx, dword [ebp - 0x54]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x8c]
jmp case.0x54d698.0
lea ecx, [ebp - 0x60]
lea eax, [ebx + 0x20]
mov dl, 1
call fcn.0054b204
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x90]
jmp case.0x54d698.0
lea ecx, [ebp - 0x68]
lea eax, [ebx + 0x20]
mov dl, 1
call fcn.0054df80
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x94]
jmp case.0x54d698.0
lea ecx, [ebp - 0x7c]
lea eax, [ebx + 0x20]
mov dl, 1
call fcn.0054dfc0
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x98]
jmp case.0x54d698.0
lea ecx, [ebp - 0x84]
lea eax, [ebx + 0x20]
mov dl, 1
call fcn.0054e000
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x9c]
jmp case.0x54d698.0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0xa0]
jmp case.0x54d698.0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0xa4]
movzx eax, byte [ebx + 0x1c]
call fcn.00544994
test al, al
je 0x54d9f2
mov esi, 1
jmp 0x54d9f4
xor esi, esi
mov eax, ebx
call fcn.005473f8
sub eax, esi
mov edx, dword [ebp - 0xc]
dec edx
cmp eax, edx
setg al
and al, byte [ebp + 0xc]
je 0x54da1a
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x54d68b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54da81
lea eax, [ebp - 0x84]
mov edx, dword [0x5428e8]
call fcn.0043057c
lea eax, [ebp - 0x7c]
mov edx, dword [0x54271c]
call fcn.0043057c
lea eax, [ebp - 0x68]
mov edx, dword [0x542694]
call fcn.0043057c
lea eax, [ebp - 0x54]
mov edx, dword [0x42976c]
call fcn.00431ee0
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.0042ef10
lea eax, [ebp - 4]
call fcn.0042eeb0
pop eax
jmp eax