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

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov eax, dword [esp + 0x170]
mov dword [esp + 0x40], ecx
lea ebx, [eax + 0x6c]
mov dword [esp], ebx
call fcn.0056cef0
mov dword [esp], ebx
mov dword [esp + 0x44], eax
call fcn.0056cfb0
mov ebx, eax
mov eax, dword [esp + 0x17c]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
movzx esi, word [esp + 0x16c]
mov dword [esp + 0x108], 0
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x160]
mov word [esp + 0x38], si
movzx eax, word [esp + 0x164]
cmp ax, 0xffff
sete dl
test ecx, ecx
setne al
and al, dl
mov edi, eax
jne 0x506b00
mov esi, dword [esp + 0x168]
cmp word [esp + 0x38], 0xffff
sete al
test esi, esi
setne cl
and cl, al
mov edi, ecx
jne 0x506b30
mov ecx, dword [esp + 0x108]
cmp dl, al
je 0x506ad0
cmp ebp, dword [esp + 0x34]
jae 0x506ad0
test ecx, ecx
jne 0x506ad8
mov edi, dword [esp + 0x17c]
lea esi, [ebp + ebp]
mov eax, dword [ebx]
mov dword [esp + 4], 0
add edi, esi
movzx ecx, word [edi]
mov dword [esp], ecx
mov ecx, ebx
call dword [eax + 0x30]
sub esp, 8
cmp al, 0x25
jne 0x506a38
mov edx, dword [esp + 0x17c]
mov eax, dword [ebx]
lea edi, [ebp + 1]
mov dword [esp + 4], 0
movzx ecx, word [edx + esi + 2]
mov dword [esp], ecx
mov ecx, ebx
call dword [eax + 0x30]
sub esp, 8
mov dword [esp + 0x10c], 0
cmp al, 0x45
je 0x506a80
cmp al, 0x4f
je 0x506a80
sub eax, 0x41
cmp al, 0x38
ja case.0x506a2e.4
movzx eax, al
jmp dword [eax*4 + 0x5e8558]
movzx eax, word [esp + 0x164]
movzx esi, word [edi]
mov ecx, dword [esp + 0x160]
cmp ax, 0xffff
jne 0x506a58
test ecx, ecx
jne 0x506b98
cmp si, ax
je 0x506b70
or dword [esp + 0x108], 4
movzx eax, word [esp + 0x164]
mov edi, ebp
lea ebp, [edi + 1]
jmp 0x50696a
mov edx, dword [esp + 0x17c]
mov eax, dword [ebx]
mov ecx, ebx
lea edi, [ebp + 2]
mov dword [esp + 4], 0
movzx edx, word [edx + esi + 4]
mov dword [esp], edx
call dword [eax + 0x30]
sub eax, 0x41
sub esp, 8
cmp al, 0x38
jbe 0x506a2b
or dword [esp + 0x108], 4
movzx eax, word [esp + 0x164]
nop
mov ecx, dword [esp + 0x160]
jmp 0x506a73
test ecx, ecx
je 0x506b60
mov eax, dword [esp + 0x174]
or dword [eax], 4
mov eax, dword [esp + 0x160]
mov edx, dword [esp + 0x164]
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x507b80
movzx eax, word [eax]
xor edx, edx
cmp ax, 0xffff
jne 0x506980
mov dword [esp + 0x160], 0
mov edx, edi
jmp 0x506980
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jae 0x507b60
movzx ecx, word [eax]
xor eax, eax
cmp cx, 0xffff
jne 0x50699f
mov dword [esp + 0x168], 0
mov eax, edi
jmp 0x50699f
cmp ebp, dword [esp + 0x34]
jne 0x506ad8
jmp 0x506ae2
call fcn.00535f20
mov eax, 0xffffffff
mov edi, ebp
mov ecx, dword [esp + 0x160]
mov word [esp + 0x164], ax
mov eax, 0xffffffff
jmp 0x506a73
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x507c61
movzx eax, word [eax]
cmp ax, 0xffff
je 0x507b90
mov ecx, dword [esp + 0x160]
jmp 0x506a58
lea eax, [esp + 0x108]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x18], 0x270f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x14], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00505d60
sub esp, 0x28
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x108]
mov dword [esp + 0x68], eax
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0x6c]
mov word [esp + 0x164], ax
test edx, edx
jne 0x506ac0
mov ecx, dword [esp + 0x10c]
lea esi, [ecx + 0x64]
lea edx, [ecx - 0x76c]
test ecx, ecx
cmovs edx, esi
mov esi, dword [esp + 0x178]
mov dword [esi + 0x14], edx
jmp 0x506ac0
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x94]
mov dword [esp + 0x110], edx
mov edx, dword [eax + 0x98]
mov dword [esp + 0x114], edx
mov edx, dword [eax + 0x9c]
mov dword [esp + 0x118], edx
mov edx, dword [eax + 0xa0]
mov dword [esp + 0x11c], edx
mov edx, dword [eax + 0xa4]
mov dword [esp + 0x120], edx
mov edx, dword [eax + 0xa8]
mov dword [esp + 0x124], edx
mov edx, dword [eax + 0xac]
mov dword [esp + 0x128], edx
mov edx, dword [eax + 0xb0]
mov dword [esp + 0x12c], edx
mov edx, dword [eax + 0xb4]
mov dword [esp + 0x130], edx
mov edx, dword [eax + 0xb8]
mov dword [esp + 0x134], edx
mov edx, dword [eax + 0xbc]
mov dword [esp + 0x138], edx
mov eax, dword [eax + 0xc0]
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x13c], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x110]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov edx, dword [esp + 0x16c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005061d0
sub esp, 0x24
mov dword [esp + 0xe8], eax
mov esi, dword [esp + 0x108]
mov dword [esp + 0xec], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0xec]
mov word [esp + 0x164], ax
test esi, esi
jne 0x506ac0
mov edx, dword [esp + 0x10c]
mov esi, dword [esp + 0x178]
mov dword [esi + 0x10], edx
jmp 0x506ac0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x48]
mov dword [esp + 0x110], edx
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x114], edx
mov edx, dword [eax + 0x50]
mov dword [esp + 0x118], edx
mov edx, dword [eax + 0x54]
mov dword [esp + 0x11c], edx
mov edx, dword [eax + 0x58]
mov dword [esp + 0x120], edx
mov edx, dword [eax + 0x5c]
mov dword [esp + 0x124], edx
mov eax, dword [eax + 0x60]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x18], 7
mov dword [esp + 0x128], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x110]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp], eax
call fcn.005061d0
sub esp, 0x24
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x108]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0xfc]
mov word [esp + 0x164], ax
test edx, edx
jne 0x506ac0
mov edx, dword [esp + 0x10c]
mov esi, dword [esp + 0x178]
mov dword [esi + 0x18], edx
jmp 0x506ac0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x16c]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x178]
mov dword [esp + 4], edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp], eax
call fcn.00506900
sub esp, 0x20
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0x74]
mov word [esp + 0x164], ax
jmp 0x506ac0
lea ecx, [esp + 0x160]
call fcn.004d3360
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp], 1
movzx eax, ax
mov dword [esp + 4], eax
call dword [edx + 8]
sub esp, 8
test al, al
je case.0x506a2e.4
lea eax, [esp + 0x108]
mov edx, dword [esp + 0x16c]
lea esi, [esp + 0x110]
mov dword [esp + 0x18], 0xe
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x14], 0x5a0aa0
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x10], esi
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005061d0
sub esp, 0x24
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x160]
mov dword [esp + 0x60], eax
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0x64]
mov word [esp + 0x164], ax
lea eax, [esp + 0x168]
mov dword [esp], eax
call fcn.004d32c0
sub esp, 4
test al, al
jne 0x50705a
mov eax, dword [esp + 0x108]
or eax, dword [esp + 0x110]
je 0x507c6b
movzx esi, word [esp + 0x16c]
movzx eax, word [esp + 0x164]
mov word [esp + 0x38], si
jmp 0x506ac0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x16c]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x18]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x178]
mov dword [esp + 4], edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp], eax
call fcn.00506900
sub esp, 0x20
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0xdc]
mov word [esp + 0x164], ax
jmp 0x506ac0
lea eax, [esp + 0x108]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x18], 0x1f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x14], 1
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00505d60
sub esp, 0x28
mov dword [esp + 0xd4], edx
mov edx, dword [esp + 0x108]
mov dword [esp + 0xd0], eax
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0xd4]
mov word [esp + 0x164], ax
test edx, edx
jne 0x506ac0
mov edx, dword [esp + 0x10c]
mov esi, dword [esp + 0x178]
mov dword [esi + 0xc], edx
jmp 0x506ac0
lea eax, [esp + 0x108]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x18], 0x17
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x14], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00505d60
sub esp, 0x28
mov dword [esp + 0xb0], eax
mov esi, dword [esp + 0x108]
mov dword [esp + 0xb4], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0xb4]
mov word [esp + 0x164], ax
test esi, esi
jne 0x506ac0
mov edx, dword [esp + 0x10c]
mov esi, dword [esp + 0x178]
mov dword [esi + 8], edx
jmp 0x506ac0
lea eax, [esp + 0x108]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x18], 0xc
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x14], 1
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00505d60
sub esp, 0x28
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x108]
mov dword [esp + 0xac], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0xac]
mov word [esp + 0x164], ax
test ecx, ecx
jne 0x506ac0
jmp 0x507262
lea eax, [esp + 0x108]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x18], 0x3b
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x14], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00505d60
sub esp, 0x28
mov dword [esp + 0x98], eax
mov ebp, dword [esp + 0x108]
mov dword [esp + 0x9c], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0x9c]
mov word [esp + 0x164], ax
test ebp, ebp
jne 0x506ac0
mov edx, dword [esp + 0x10c]
mov esi, dword [esp + 0x178]
mov dword [esi + 4], edx
jmp 0x506ac0
mov eax, dword [ebx]
lea esi, [esp + 0x110]
mov ecx, ebx
mov dword [esp + 4], 0x5e854d
mov dword [esp + 8], esi
mov dword [esp], str._H:_M
call dword [eax + 0x2c]
sub esp, 0xc
mov eax, dword [esp + 0x178]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp], eax
call fcn.00506900
sub esp, 0x20
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0x94]
mov word [esp + 0x164], ax
jmp 0x506ac0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x110], edx
mov edx, dword [eax + 0x30]
mov dword [esp + 0x114], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x118], edx
mov edx, dword [eax + 0x38]
mov dword [esp + 0x11c], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x120], edx
mov edx, dword [eax + 0x40]
mov dword [esp + 0x124], edx
mov eax, dword [eax + 0x44]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x18], 7
mov dword [esp + 0x128], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x110]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp], eax
call fcn.005061d0
sub esp, 0x24
mov dword [esp + 0xf0], eax
mov ebp, dword [esp + 0x108]
mov dword [esp + 0xf4], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0xf4]
mov word [esp + 0x164], ax
test ebp, ebp
jne 0x506ac0
jmp 0x506ed0
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x64]
mov dword [esp + 0x110], edx
mov edx, dword [eax + 0x68]
mov dword [esp + 0x114], edx
mov edx, dword [eax + 0x6c]
mov dword [esp + 0x118], edx
mov edx, dword [eax + 0x70]
mov dword [esp + 0x11c], edx
mov edx, dword [eax + 0x74]
mov dword [esp + 0x120], edx
mov edx, dword [eax + 0x78]
mov dword [esp + 0x124], edx
mov edx, dword [eax + 0x7c]
mov dword [esp + 0x128], edx
mov edx, dword [eax + 0x80]
mov dword [esp + 0x12c], edx
mov edx, dword [eax + 0x84]
mov dword [esp + 0x130], edx
mov edx, dword [eax + 0x88]
mov dword [esp + 0x134], edx
mov edx, dword [eax + 0x8c]
mov dword [esp + 0x138], edx
mov eax, dword [eax + 0x90]
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x13c], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x110]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov edx, dword [esp + 0x16c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005061d0
sub esp, 0x24
mov dword [esp + 0xe0], eax
mov ecx, dword [esp + 0x108]
mov dword [esp + 0xe4], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0xe4]
mov word [esp + 0x164], ax
test ecx, ecx
jne 0x506ac0
jmp 0x506dc2
mov eax, dword [ebx]
lea esi, [esp + 0x110]
mov ecx, ebx
mov dword [esp + 4], str._H:_M
mov dword [esp + 8], esi
mov dword [esp], 0x5e853e
call dword [eax + 0x2c]
sub esp, 0xc
mov eax, dword [esp + 0x178]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp], eax
call fcn.00506900
sub esp, 0x20
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0xbc]
mov word [esp + 0x164], ax
jmp 0x506ac0
lea ecx, [esp + 0x160]
call fcn.004d3360
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp], 0x20
movzx eax, ax
mov dword [esp + 4], eax
call dword [edx + 8]
sub esp, 8
test al, al
jne 0x507ba2
lea eax, [esp + 0x108]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x18], 0x1f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x14], 0xa
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00505d60
sub esp, 0x28
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0xc4]
mov word [esp + 0x164], ax
mov ebp, dword [esp + 0x108]
movzx eax, word [esp + 0x164]
test ebp, ebp
jne 0x506ac0
jmp 0x5071a8
lea eax, [esp + 0x108]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x18], 0xc
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x14], 1
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00505d60
sub esp, 0x28
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x108]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0xa4]
mov word [esp + 0x164], ax
test edx, edx
jne 0x506ac0
mov esi, dword [esp + 0x10c]
lea edx, [esi - 1]
mov esi, dword [esp + 0x178]
mov dword [esi + 0x10], edx
jmp 0x506ac0
lea ecx, [esp + 0x160]
call fcn.004d3360
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp + 4], 0
movzx eax, ax
mov dword [esp], eax
call dword [edx + 0x30]
sub esp, 8
cmp al, 0xa
jne case.0x506a2e.4
mov ecx, dword [esp + 0x160]
call fcn.00535f20
mov ecx, 0xffffffff
mov eax, 0xffffffff
mov word [esp + 0x164], cx
jmp 0x506ac0
lea ecx, [esp + 0x160]
call fcn.004d3360
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp + 4], 0
movzx eax, ax
mov dword [esp], eax
call dword [edx + 0x30]
sub esp, 8
cmp al, 9
jne case.0x506a2e.4
jmp 0x507924
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x16c]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x178]
mov dword [esp + 4], edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp], eax
call fcn.00506900
sub esp, 0x20
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0x7c]
mov word [esp + 0x164], ax
jmp 0x506ac0
lea eax, [esp + 0x108]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x18], 0x3c
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x14], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00505d60
sub esp, 0x28
mov dword [esp + 0x88], eax
mov esi, dword [esp + 0x108]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0x8c]
mov word [esp + 0x164], ax
test esi, esi
jne 0x506ac0
mov edx, dword [esp + 0x10c]
mov esi, dword [esp + 0x178]
mov dword [esi], edx
jmp 0x506ac0
mov eax, dword [ebx]
lea esi, [esp + 0x110]
mov ecx, ebx
mov dword [esp + 4], 0x5e8556
mov dword [esp + 8], esi
mov dword [esp], 0x5e854d
call dword [eax + 0x2c]
sub esp, 0xc
mov eax, dword [esp + 0x178]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp], eax
call fcn.00506900
sub esp, 0x20
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0x84]
mov word [esp + 0x164], ax
jmp 0x506ac0
mov eax, dword [esi]
mov byte [esp + 0x48], dl
mov ecx, esi
call dword [eax + 0x24]
movzx edx, byte [esp + 0x48]
mov ecx, eax
jmp 0x506b3f
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x506b0f
mov dword [esp + 0x160], 0
xor ecx, ecx
jmp 0x506a58
mov ecx, dword [esp + 0x160]
call fcn.00535f20
mov eax, 0xffffffff
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], 1
mov word [esp + 0x164], ax
lea eax, [esp + 0x108]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x18], 9
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x14], 1
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00505d60
sub esp, 0x28
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0xcc]
mov word [esp + 0x164], ax
jmp 0x50781f
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x506ba7
lea ecx, [esp + 0x160]
call fcn.004d3360
mov ecx, ebx
mov ebp, eax
mov eax, dword [ebx]
mov dword [esp], 0x2d
call dword [eax + 0x28]
sub esp, 4
cmp bp, ax
je 0x507cb7
lea ecx, [esp + 0x160]
call fcn.004d3360
mov ecx, ebx
mov ebp, eax
mov eax, dword [ebx]
mov dword [esp], 0x2b
call dword [eax + 0x28]
sub esp, 4
cmp bp, ax
jne 0x50705a
lea eax, [esp + 0x108]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x164]
mov ecx, ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x18], 0x17
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00505d60
sub esp, 0x28
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x160], eax
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x5c], ecx
mov ecx, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], eax
movzx eax, word [esp + 0x5c]
mov dword [esp + 0xc], edx
mov word [esp + 0x164], ax
lea eax, [esp + 0x108]
mov edx, dword [esp + 0x164]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x18], 0x3b
mov dword [esp + 8], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00505d60
sub esp, 0x28
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x160], eax
movzx eax, word [esp + 0x54]
mov word [esp + 0x164], ax
jmp 0x50705a