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

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
mov ecx, 0x96
push esi
mov esi, dword [esp + 0x64]
push edi
mov edi, dword [ebp]
lea edx, [ecx + 1]
mov dword [esp + 0x2c], 0
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], 0
movzx eax, word [ebx]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0x86
mov dword [esp + 0x20], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
cmp ax, cx
je 0x500fbd
mov ecx, eax
cmp ax, dx
jne 0x500fcc
movzx ecx, word [ebx + 2]
add ebx, 2
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
movzx edx, cx
mov ecx, ebx
mov dword [esp + 0x10], edx
movzx eax, word [ecx + 2]
lea ecx, [ecx + eax*2]
movzx eax, word [ecx]
cmp eax, 0x78
je 0x500fd5
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0x79
jne 0x501048
sub ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, ecx
sar eax, 1
mov eax, dword [edx + eax*4]
test eax, eax
je 0x501044
mov dword [esp + 0x30], eax
lea eax, [ecx + 4]
sar eax, 1
mov eax, dword [edx + eax*4]
mov dword [esp + 0x1c], eax
lea eax, [ecx + 6]
sar eax, 1
mov eax, dword [edx + eax*4]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
cmp eax, 0x27
jne 0x501033
mov dword [esp + 0x14], 0x7a
jmp 0x501048
cmp eax, 0x28
mov ecx, 0x7b
cmove ebx, ecx
mov dword [esp + 0x14], ebx
jmp 0x501048
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
xor ebx, ebx
movzx eax, word [ecx + 2]
lea eax, [ecx + eax*2]
movzx ecx, word [eax]
cmp ecx, 0x78
mov dword [esp + 0x3c], eax
sete bl
cmp edx, 0x8a
je 0x501072
cmp edx, 0x8f
jne 0x501098
mov eax, dword [esp + 0x28]
movzx eax, word [eax + 4]
cmp eax, 0x7e
jb 0x501089
mov ebx, 0x81
cmp ax, bx
jbe 0x501093
cmp dword [esi + 0x20], 0
jne 0x501093
xor ebx, ebx
jmp 0x501098
mov ebx, 1
cmp edx, 0x88
je 0x5010a8
cmp edx, 0x8d
jne 0x5010b6
mov eax, dword [esp + 0x28]
movzx eax, word [eax + 4]
add eax, eax
mov dword [esp + 0x2c], eax
cmp edx, 0x8a
jne 0x5010d1
cmp ecx, 0x7a
je 0x5010c8
cmp ecx, 0x7b
jne 0x5010d1
mov edx, 0x8f
mov dword [esp + 0x10], edx
test ebx, ebx
je 0x5010f9
mov ecx, dword [esp + 0x28]
xor ebp, ebp
nop dword [eax + eax]
movzx eax, word [ecx + 2]
inc ebp
cmp word [ecx + eax*2], 0x78
lea ecx, [ecx + eax*2]
je 0x5010e0
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x64]
jmp 0x501101
mov dword [esp + 0x38], 0
cmp edx, 0x84
jne 0x50111a
mov eax, dword [esi + 0x20]
mov ecx, eax
and ecx, 1
sar eax, 1
mov dword [esp + 0x20], ecx
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ax, 0x79
je 0x5011a3
test ecx, ecx
je 0x5011a3
cmp dword [edi], 0
jne 0x501145
push 0
push 0x8b
push 0
push 1
push edi
call fcn.0050f720
add esp, 0x14
push 4
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push dword [ebp]
call fcn.0051aaf0
add esp, 0x20
cmp dword [esp + 0x1c], 0x27
jne 0x501183
push 1
push 0x40
push 0
push 1
push dword [esp + 0x40]
push 0x8d
push 0x60
push edi
call fcn.0051aaf0
add esp, 0x20
jmp 0x50119b
push 0
push 1
push dword [esp + 0x38]
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp ax, 0x7a
jne 0x501204
mov eax, 0x96
cmp word [esp + 0x24], ax
jne 0x5013a5
cmp dword [edi], 0
jne 0x5011d2
push 0
push 0x8b
push 0
push 1
push edi
call fcn.0050f720
add esp, 0x14
push 4
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push dword [ebp]
call fcn.0051aaf0
push 0
push 0x40
push 0
push 1
push 0
push edi
call fcn.00519da0
add esp, 0x38
mov dword [esp + 0x44], eax
jmp 0x5013a5
cmp ax, 0x7b
jne 0x501330
mov eax, 0x97
cmp word [esp + 0x24], ax
je 0x5012f7
push 0
push 0x8b
push 0
push 2
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
cmp dword [esp + 0x1c], 0
je 0x50125f
push dword [esi + 0x18]
push 0
push 0x40
push 0
push 1
push 1
push edi
call fcn.00519da0
add esp, 0x18
push eax
call fcn.0051bb30
add esp, 8
jmp 0x5012e2
mov eax, dword [esp + 0x10]
cmp eax, 0x8b
jae 0x501287
cmp eax, 0x84
je 0x50128e
push dword [esi + 0x18]
push 0x18
push edi
call fcn.0051a710
add esp, 8
push eax
call fcn.0051bb30
jmp 0x5012f4
cmp eax, 0x84
jne 0x5012be
cmp dword [esi + 0x20], 0
jl 0x5012be
push dword [esp + 0x18]
push 0x8d
push 0
push 1
push 0x20
push edi
call fcn.0051a810
mov eax, 0xfffffffe
add esp, 0x18
sub eax, dword [esi + 0x20]
mov ecx, 0x81
shl eax, 2
jmp 0x5012c7
mov eax, dword [esp + 0x18]
mov ecx, 0x8d
mov esi, dword [esi + 0x18]
push eax
push ecx
push 0
push 2
push 1
push edi
call fcn.00519da0
push esi
push eax
call fcn.0051bb30
add esp, 0x20
cmp dword [esp + 0x10], 0x84
je 0x5012f7
push 1
push ebp
call fcn.00513e60
add esp, 8
push edi
call fcn.0051a7a0
add esp, 4
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x1c], 0
je 0x5013a5
mov eax, dword [esp + 0x30]
push 1
push 0x40
push eax
push 0x8d
push eax
push 0x8d
push 0x60
push edi
call fcn.0051aaf0
add esp, 0x20
jmp 0x5013a5
mov eax, 0x96
cmp word [esp + 0x24], ax
jne 0x50137e
push 0
push 0x8b
push 0
push 1
push 0x20
push edi
call fcn.0051a810
push 4
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push dword [ebp]
call fcn.0051aaf0
push 0
push 0x40
push 0
push 1
push 1
push edi
call fcn.00519da0
add esp, 0x50
mov dword [esp + 0x44], eax
jmp 0x5013a5
cmp ecx, 0x29
jne 0x5013a5
push 1
push 0x40
push dword [esp + 0x38]
push 0x8d
push 0x20
push edi
call fcn.0051a810
push edi
call fcn.0051a7a0
add esp, 0x1c
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x50150f
cmp dword [ebp + 0x48], 0
je 0x50148c
mov eax, dword [edi]
test eax, eax
jne 0x5013ee
push eax
push 0x8b
push eax
push 1
push edi
call fcn.0050f720
mov eax, dword [edi]
add esp, 0x14
test eax, eax
jne 0x5013ee
push 4
push 0x8b
push eax
push 3
push edi
call fcn.0050f720
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [ebp + 0x48]
test eax, eax
jne 0x501423
add ecx, dword [edi + 0x58]
push eax
push 1
push ecx
push 0x8d
push edi
call fcn.0050f720
add esp, 0x14
cmp dword [edi], 0
jne 0x501423
push 8
push 0x8b
push 0
push 1
push edi
call fcn.0050f720
add esp, 0x14
push 0xc
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push dword [ebp]
call fcn.0051aaf0
mov ecx, dword [ebp + 0x24]
add esp, 0x20
mov edx, dword [edi]
lea eax, [ecx + esi*4]
test edx, edx
jne 0x501462
add eax, dword [edi + 0x58]
push edx
push 3
push eax
push 0x8d
push edi
call fcn.0050f720
mov ecx, dword [ebp + 0x24]
add esp, 0x14
mov edx, dword [edi]
lea ecx, [ecx + esi*4]
test edx, edx
jne 0x50150f
mov eax, dword [edi + 0x58]
push edx
add eax, 4
push 1
add eax, ecx
push eax
push 0x8d
push edi
call fcn.0050f720
add esp, 0x14
jmp 0x50150f
mov eax, dword [ebp + 0x14]
mov ecx, esi
shr ecx, 1
cmp byte [ecx + eax], 0
jne 0x50150f
push 0
push 0x8b
push 0
push 1
push 0x20
push edi
call fcn.0051a810
push 4
push 0x8b
push 0
push 3
push 0x20
push edi
call fcn.0051a810
push 8
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push dword [ebp]
call fcn.0051aaf0
mov eax, dword [ebp + 0x24]
add esp, 0x50
shl esi, 2
add eax, esi
push 0
push 1
push eax
push 0x8d
push 0x20
push edi
call fcn.0051a810
mov eax, dword [ebp + 0x24]
push 0
push 3
add eax, 4
add eax, esi
push eax
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x30
mov esi, dword [esp + 0x10]
cmp esi, 0x84
jne 0x5015b6
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 0x20], 0
jl 0x5015a2
cmp dword [edi], 0
jne 0x501548
mov eax, dword [edi + 0x58]
add eax, dword [esp + 0x18]
push eax
push 0x8d
push 0
push 0xb
push edi
call fcn.0050f720
add esp, 0x14
push 0x19
push edi
call fcn.0051a710
add esp, 8
mov esi, eax
cmp dword [edi], 0
jne 0x50157a
push 8
push edi
call fcn.00510f30
add esp, 8
test eax, eax
je 0x50157a
mov ecx, dword [ebp + 0xf4]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov dword [ebp + 0xf4], eax
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 0x20]
lea eax, [eax*4 - 4]
push eax
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push edi
call fcn.0051aaf0
mov esi, dword [esp + 0x30]
add esp, 0x20
push 0x18
push edi
call fcn.0051a710
add esp, 8
mov dword [esp + 0x50], eax
jmp 0x50167d
cmp esi, 0x8a
je 0x50162b
cmp esi, 0x8f
je 0x50162b
test ebx, ebx
je 0x50167d
push 0
push 0x8b
push 0
push 1
push 0x20
push edi
call fcn.0051a810
push 1
push ebp
call fcn.00513e60
add esp, 0x20
cmp dword [esp + 0x38], 3
push 0
jle 0x501618
push 1
push 0x18
push edi
call fcn.0051a610
push edi
call fcn.0051a7a0
mov ecx, dword [esp + 0x7c]
add esp, 0x14
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x50167d
mov dword [ecx + 4], eax
jmp 0x50167d
push 0x40
push 0
push 1
push 1
push edi
call fcn.00519da0
add esp, 0x18
jmp 0x501679
test ebx, ebx
je 0x50167d
cmp dword [edi], 0
jne 0x501648
push 0
push 0x8b
push 0
push 1
push edi
call fcn.0050f720
add esp, 0x14
push 4
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push dword [ebp]
call fcn.0051aaf0
push 0
push 0x40
push 0
push 1
push 1
push edi
mov dword [esp + 0x70], 2
call fcn.00519da0
add esp, 0x38
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
push dword [eax + 8]
push ebp
call fcn.005009c0
add esp, 8
cmp dword [edi], 0
jne 0x50215b
mov edx, dword [esp + 0x68]
cmp dword [edx + 0xc], 0
je 0x5016ba
push edi
call fcn.0051a7a0
push eax
mov eax, dword [esp + 0x70]
push dword [eax + 0xc]
call fcn.00519780
mov edx, dword [esp + 0x74]
add esp, 0xc
cmp esi, 0x8a
je 0x5016ce
cmp esi, 0x8f
jne 0x5017c3
mov eax, dword [esp + 0x28]
movzx ecx, word [eax + 4]
lea eax, [ecx - 0x7e]
cmp ax, 3
ja 0x50179b
mov esi, dword [edx + 0x20]
cmp dword [esi + 0x18], 0
jl 0x501773
cmp ecx, 0x7e
je 0x5016ff
mov eax, 0x80
cmp cx, ax
jne 0x501773
push dword [esi + 0x1c]
push 0x8d
push 0
push 0xb
push 0x20
push edi
call fcn.0051a810
push 0x19
push edi
call fcn.0051a710
push eax
lea eax, [ebp + 0xf4]
push eax
push edi
call fcn.004fdb10
push 0xfffffffffffffff8
push 0x8b
push 0
push 1
push 0x20
push edi
call fcn.0051a810
mov eax, dword [esi + 0x18]
add esp, 0x44
lea eax, [eax*4 - 4]
push eax
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push edi
call fcn.0051aaf0
push 0
push 1
push dword [esi + 0x1c]
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x38
push 0x18
push edi
call fcn.0051a710
push edi
mov dword [esp + 0x4c], eax
call fcn.0051a7a0
push eax
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x20]
push dword [ecx + 0x14]
call fcn.00519780
mov esi, dword [esp + 0x24]
jmp 0x5017c0
cmp dword [edx + 0x20], 0
je 0x5017c3
push 0x18
push edi
call fcn.0051a710
push edi
mov dword [esp + 0x4c], eax
call fcn.0051a7a0
push eax
mov eax, dword [esp + 0x78]
push dword [eax + 0x20]
call fcn.00519780
add esp, 0x14
test ebx, ebx
mov ebx, dword [esp + 0x68]
je 0x501d5d
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x48], 1
nop dword [eax + eax]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 4], 0
cmp word [ecx], 0x78
jne 0x501899
movzx eax, word [ecx + 2]
lea esi, [ecx + 4]
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
cmp eax, 0x8a
je 0x501865
cmp eax, 0x8f
je 0x501865
cmp eax, 0x84
je 0x501845
mov ecx, dword [esp + 0x18]
xor edx, edx
test ecx, ecx
mov eax, ecx
cmove eax, edx
push eax
xor eax, eax
test ecx, ecx
setne al
lea eax, [eax*2 + 0x8b]
push eax
jmp 0x501852
mov eax, dword [esp + 0x20]
shl eax, 2
push eax
push 0x8b
push 0
push 2
push 0x20
push edi
call fcn.0051a810
mov ecx, dword [esp + 0x54]
add esp, 0x18
push ebx
push ecx
push esi
push ebp
call fcn.00507350
add esp, 0x10
cmp dword [edi], 0
jne 0x50215b
mov esi, dword [esp + 0x10]
cmp esi, 0x85
jne 0x501899
push ebx
push dword [esp + 0x1c]
push ebp
call fcn.00517260
add esp, 0xc
jmp 0x5019dd
cmp esi, 0x84
jne 0x5019dd
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp]
test eax, eax
jns 0x50195b
cmp eax, 0xffffffff
jne 0x5018d9
cmp dword [esi], 0
jne 0x5018fa
mov eax, dword [esi + 0x58]
add eax, dword [esp + 0x18]
push eax
push 0x8d
push 0
push 0xb
push esi
call fcn.0050f720
add esp, 0x14
jmp 0x5018fa
mov eax, dword [esp + 0x20]
lea eax, [eax*4 + 4]
push eax
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push esi
call fcn.0051aaf0
add esp, 0x20
cmp dword [esp + 0x20], 0
je 0x50191a
cmp dword [esi], 0
jne 0x50191a
push 0xfffffffffffffff8
push 0x8b
push 0
push 1
push esi
call fcn.0050f720
add esp, 0x14
mov eax, dword [esp + 0x14]
cmp ax, 0x7a
jne 0x501943
cmp dword [esi], 0
jne 0x5019bb
push 0xfffffffffffffffc
push 0x8b
push 0
push 3
push esi
call fcn.0050f720
add esp, 0x14
jmp 0x5019bb
cmp ax, 0x7b
jne 0x5019bb
push 0xfffffffffffffffc
push 0x8b
push dword [esp + 0x20]
push 0x8d
jmp 0x5019b0
lea eax, [eax*4 + 8]
push eax
push 0x40
push dword [esp + 0x20]
push 0x8d
push 0
push 0xb
push 0x62
push esi
call fcn.0051aaf0
add esp, 0x20
cmp dword [esp + 0x20], 0
je 0x50199d
cmp dword [esi], 0
jne 0x50199d
push 0xfffffffffffffffc
push 0x8b
push 0
push 1
push esi
call fcn.0050f720
add esp, 0x14
cmp word [esp + 0x14], 0x7a
jne 0x5019bb
push 0
push 0x8b
push 0
push 3
push 0x20
push esi
call fcn.0051a810
add esp, 0x18
cmp dword [esp + 0x20], 0
je 0x5019d9
push 0
push 1
push dword [ebp + 0x44]
push 0x8d
push 0x20
push esi
call fcn.0051a810
add esp, 0x18
mov esi, dword [esp + 0x10]
xor edx, edx
cmp dword [esp + 0x1c], 0x28
jne 0x501a02
push dword [esp + 0x30]
push 0x8d
push edx
push 3
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
mov edx, 1
cmp word [esp + 0x14], 0x79
jne 0x501a16
mov eax, 0x86
cmp word [esp + 0x24], ax
je 0x501a17
inc edx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x501a39
cmp dword [ebp + 0x48], 0
lea eax, [edx + 1]
cmove eax, edx
shr ecx, 1
mov edx, eax
mov eax, dword [ebp + 0x14]
cmp byte [ecx + eax], 0
jne 0x501a39
add edx, 2
cmp esi, 0x84
lea eax, [edx + 1]
cmove eax, edx
test eax, eax
je 0x501ac1
mov esi, dword [ebp]
shl eax, 2
push eax
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x62
push esi
call fcn.0051aaf0
push 0
push 0xa
push 0
push 0xb
push 2
push esi
call fcn.00519da0
mov ebx, dword [esp + 0x9c]
add esp, 0x38
mov ebp, eax
mov ebx, dword [ebx]
cmp dword [ebx], 0
jne 0x501ab9
push 0xc
push ebx
call fcn.00510f30
mov esi, eax
add esp, 8
test esi, esi
je 0x501ab9
push ebx
mov dword [esi], ebp
call fcn.0051a7a0
mov ebp, dword [esp + 0x68]
add esp, 4
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc8]
mov dword [esi + 8], eax
mov dword [ebp + 0xc8], esi
jmp 0x501abd
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
xor esi, esi
cmp dword [esp + 0x1c], 0x28
jne 0x501ae7
push 1
push 0x40
push esi
push 3
push esi
push 0x8b
push 0x62
push edi
call fcn.0051aaf0
add esp, 0x20
mov esi, 1
mov ecx, dword [esp + 0x14]
cmp cx, 0x79
jne 0x501afd
mov eax, 0x86
cmp word [esp + 0x24], ax
je 0x501b2a
cmp cx, 0x79
mov eax, 2
push 0
mov ecx, 0x40
cmove eax, ecx
push eax
lea eax, [esi*4]
push eax
push 0x8b
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
inc esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x501b43
push dword [esp + 0x18]
push eax
push esi
push ebp
call fcn.00516f20
add esp, 0x10
mov esi, eax
cmp dword [esp + 0x10], 0x84
je 0x501b83
shl esi, 2
cmp dword [esp + 0x38], 3
jg 0x501b70
push dword [esp + 0x48]
push 0x40
push esi
push 0x8b
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
jmp 0x501b83
push esi
push 0x8b
push edi
call fcn.0051b240
add esp, 0xc
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x501bbe
cmp word [esp + 0x14], 0x7a
jne 0x501bbe
mov eax, dword [ebp + 0x14]
mov ecx, edx
shr ecx, 1
cmp byte [ecx + eax], 0
je 0x501bbe
mov eax, dword [ebp + 0x24]
push 0
push 2
lea eax, [eax + edx*4]
add eax, 4
push eax
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
mov esi, dword [ebx + 0x14]
push 0x18
push edi
call fcn.0051a710
add esp, 8
test eax, eax
je 0x501be3
test esi, esi
je 0x501be3
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
mov esi, dword [esp + 0x10]
cmp esi, 0x84
je 0x501c59
push edi
call fcn.0051a7a0
mov edx, dword [esp + 0x3c]
add esp, 4
mov ecx, eax
cmp edx, 3
jg 0x501c4e
mov eax, dword [esp + 0x34]
test eax, eax
je 0x501c28
test ecx, ecx
je 0x501c28
mov eax, dword [eax + 8]
mov ebp, dword [esp + 0x34]
and eax, 0xfffffffd
or eax, 1
mov dword [ebp + 8], eax
mov eax, ebp
mov ebp, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0x48], eax
cmp eax, edx
jge 0x501c59
push 1
push 0x40
push 0
push 1
push 1
push edi
call fcn.00519da0
add esp, 0x18
mov dword [esp + 0x34], eax
jmp 0x501c59
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x501c59
mov dword [eax + 4], ecx
push dword [ebx + 8]
push ebp
call fcn.005009c0
add esp, 8
cmp dword [edi], 0
jne 0x50215b
cmp dword [ebx + 0xc], 0
je 0x501c86
push edi
call fcn.0051a7a0
push eax
push dword [ebx + 0xc]
call fcn.00519780
add esp, 0xc
mov ecx, dword [esp + 0x3c]
cmp word [ecx], 0x78
je 0x5017e0
cmp dword [esp + 0x40], 0
je 0x501d4a
mov eax, dword [esp + 0x28]
mov esi, dword [ebx + 0x20]
movzx eax, word [eax + 4]
cmp eax, 0x7f
je 0x501cb9
mov ecx, 0x81
cmp ax, cx
jne 0x501d33
cmp dword [esi + 0x18], 0
jl 0x501d33
push dword [esi + 0x1c]
push 0x8d
push 0
push 0xb
push 0x20
push edi
call fcn.0051a810
push 0x19
push edi
call fcn.0051a710
push eax
lea eax, [ebp + 0xf4]
push eax
push edi
call fcn.004fdb10
push 0xfffffffffffffff8
push 0x8b
push 0
push 1
push 0x20
push edi
call fcn.0051a810
mov eax, dword [esi + 0x18]
add esp, 0x44
lea eax, [eax*4 - 4]
push eax
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push edi
call fcn.0051aaf0
push 0
push 1
push dword [esi + 0x1c]
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x38
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x48]
call fcn.0051bb30
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x501d61
push 1
push ebp
call fcn.00513e60
add esp, 8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x501e10
mov ecx, dword [ebp + 0x14]
mov eax, edx
push 0
push 0x8b
push 0
shr eax, 1
push 1
push 0x20
push edi
mov bl, byte [eax + ecx]
call fcn.0051a810
add esp, 0x18
test bl, bl
je 0x501de0
push 4
push 0x8b
push 0
push 3
push 0x20
push edi
call fcn.0051a810
push 2
push ebp
call fcn.00513e60
mov esi, dword [esp + 0x4c]
mov eax, dword [ebp + 0x24]
push 0
push 1
shl esi, 2
add eax, esi
push eax
push 0x8d
push 0x20
push edi
call fcn.0051a810
mov eax, dword [ebp + 0x24]
add esp, 0x38
add eax, 4
add eax, esi
mov dword [esp + 0x18], eax
mov eax, 3
jmp 0x501df0
push 1
push ebp
call fcn.00513e60
add esp, 8
mov eax, 1
push 0
push eax
push dword [esp + 0x20]
push 0x8d
push 0x20
push edi
call fcn.0051a810
mov esi, dword [esp + 0x28]
add esp, 0x18
jmp 0x501f3e
cmp esi, 0x85
je 0x501f1e
cmp esi, 0x8b
je 0x501f1e
cmp esi, 0x8f
je 0x501f1e
cmp esi, 0x84
jne 0x501f3e
mov ecx, dword [esp + 0x28]
movzx eax, word [ecx + 2]
lea eax, [ecx + eax*2]
mov ecx, dword [ebx + 0x20]
test ecx, ecx
js 0x501e72
cmp word [esp + 0x14], 0x79
jne 0x501e65
cmp word [eax], 0x78
mov eax, 1
jne 0x501e6a
mov eax, 2
add eax, ecx
add eax, dword [esp + 0x20]
jmp 0x501e93
mov ecx, dword [esp + 0x14]
cmp cx, 0x7a
je 0x501e88
cmp word [eax], 0x78
jne 0x501e8f
cmp cx, 0x7b
je 0x501e8f
mov eax, dword [esp + 0x20]
inc eax
jmp 0x501e93
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x501ea1
push eax
push ebp
call fcn.00513e60
add esp, 8
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x58]
call fcn.0051bb30
mov ecx, dword [ebx + 0x20]
add esp, 0xc
test ecx, ecx
js 0x501edf
or eax, 0xffffffff
sub eax, ecx
shl eax, 2
push eax
push 0x8b
push dword [esp + 0x20]
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
jmp 0x501f3e
mov eax, dword [esp + 0x14]
cmp ax, 0x7b
jne 0x501f42
push 4
push 0x8b
push 0
push 1
push 0x20
push edi
call fcn.0051a810
push 2
push ebp
call fcn.00513e60
push 0
push 1
push dword [esp + 0x40]
push 0x8d
push 0x20
push edi
call fcn.0051a810
add esp, 0x38
jmp 0x501f3e
push 0
push 0x8b
push eax
push 0x8d
push 0x20
push edi
call fcn.0051a810
push 1
push ebp
call fcn.00513e60
add esp, 0x20
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x1c], 0x29
jne 0x501fb8
mov ebx, dword [esp + 0x30]
push 1
push 0x40
push ebx
push 0x8d
push 0
push 1
push 0x60
push edi
call fcn.0051aaf0
push 0
push 1
push ebx
push 0x8d
push 0x20
push edi
call fcn.0051a810
push dword [esp + 0x8c]
push 0x40
push 0
push 1
push 5
push edi
call fcn.00519da0
add esp, 0x50
test eax, eax
je 0x50215b
mov edx, dword [esp + 0x58]
test edx, edx
je 0x50215b
mov ecx, dword [eax + 8]
pop edi
pop esi
and ecx, 0xfffffffd
mov dword [eax + 0xc], edx
or ecx, 1
pop ebp
mov dword [eax + 8], ecx
pop ebx
add esp, 0x50
ret
cmp ax, 0x7a
jne 0x50206f
push 0
push 0x8b
push 0
push 2
push 0x20
push edi
call fcn.0051a810
mov esi, dword [esp + 0x3c]
mov eax, 0x96
add esp, 0x18
cmp si, ax
je 0x501ff1
push 1
push ebp
call fcn.00513e60
add esp, 8
mov ebx, dword [esp + 0x68]
push dword [ebx + 0x18]
push 0
push 0x40
push 0
push 2
push 1
push edi
call fcn.00519da0
add esp, 0x18
push eax
call fcn.0051bb30
mov eax, 0x96
add esp, 8
cmp si, ax
jne 0x50215b
push 4
push 0x8b
push 0
push 2
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
push dword [ebx + 0x1c]
push 0x18
push edi
call fcn.0051a710
add esp, 8
push eax
call fcn.0051bb30
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x54]
call fcn.0051bb30
push 1
push ebp
call fcn.00513e60
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
cmp ax, 0x7b
jne 0x50210b
push 0
push 0x8b
push 0
push 1
push 0x20
push edi
call fcn.0051a810
add esp, 0x18
cmp esi, 0x84
je 0x5020a2
push 1
push ebp
call fcn.00513e60
add esp, 8
push dword [esp + 0x5c]
push 0
push 0x40
push 0
push 1
push 1
push edi
call fcn.00519da0
add esp, 0x18
push eax
call fcn.0051bb30
add esp, 8
cmp esi, 0x84
jne 0x5020ec
xor eax, eax
mov ecx, 0x97
cmp word [esp + 0x24], cx
sete al
inc eax
push eax
push ebp
call fcn.00513e60
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, 0x97
cmp word [esp + 0x24], ax
jne 0x50215b
push 1
push ebp
call fcn.00513e60
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, 0x96
cmp word [esp + 0x24], ax
jne 0x50215b
push 0
push 0x8b
push 0
push 2
push 0x20
push edi
call fcn.0051a810
mov eax, dword [esp + 0x80]
add esp, 0x18
push dword [eax + 0x1c]
push 0x18
push edi
call fcn.0051a710
add esp, 8
push eax
call fcn.0051bb30
push edi
call fcn.0051a7a0
push eax
push dword [esp + 0x54]
call fcn.0051bb30
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret