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

Disassembly:
mov ecx, dword [0x8602c0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xa0]
cmp eax, dword [ecx + 8]
jbe 0x50938a
sub esp, 0x120
mov ecx, dword [esp + 0x12c]
cmp ecx, 2
jl 0x5080a2
mov ebx, dword [esp + 0x130]
mov ebp, dword [esp + 0x128]
mov eax, ebp
mov edx, ebx
xor esi, esi
xor edi, edi
xor eax, eax
mov word [esp + 0x24], ax
xor edx, edx
mov dword [esp + 0x44], edx
xor edx, edx
mov dword [esp + 0x48], edx
xor edx, edx
mov dword [esp + 0xf4], edx
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov eax, ebp
mov edx, dword [esp + 0x130]
mov ebx, edx
jmp 0x5080e0
mov eax, dword [esp + 0x128]
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], ecx
mov eax, dword [esp + 0x130]
mov dword [esp + 0x13c], eax
add esp, 0x120
ret
mov edx, dword [esp + 0x30]
inc edx
mov dword [esp + 0x28], edi
mov edi, esi
mov esi, edx
mov edx, dword [esp + 0x130]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xdc], ebp
cmp ecx, esi
jl 0x50868f
mov dword [esp + 0x30], esi
jle 0x50819c
jbe 0x509382
mov edx, dword [eax + esi*4]
cmp byte [edx], 0x12
jne 0x508128
mov ebp, dword [edx + 8]
test ebp, ebp
je 0x508121
mov ebp, dword [edx + 4]
mov edx, dword [ebp]
mov ebp, dword [esp + 0xdc]
jmp 0x508128
mov ebp, dword [esp + 0xdc]
cmp byte [edx], 3
je 0x508148
xor edx, edx
xor edx, edx
mov dword [esp + 0x3c], edx
xor edx, edx
mov dword [esp + 0xec], edx
xor edx, edx
mov dword [esp + 0x40], edx
xor edx, edx
jmp 0x50817b
movzx ebp, word [edx + 2]
mov ebx, dword [edx + 0x14]
mov eax, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
and ebp, 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0xec], ebx
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x128]
mov ebx, dword [esp + 0x2c]
mov edx, ebp
mov ebp, dword [esp + 0xdc]
movzx ebp, word [esp + 0x24]
cmp bp, dx
jne 0x509259
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x7c]
jmp 0x5092f6
mov dword [esp + 0xbc], eax
xor eax, eax
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x10c], eax
xor eax, eax
mov word [esp + 0x26], ax
mov eax, dword [esp + 0xbc]
cmp edi, esi
jne 0x5081d3
mov edi, dword [esp + 0x28]
jmp 0x508640
lea edx, [edi + 1]
cmp esi, edx
jne 0x508267
cmp ecx, edi
jbe 0x509252
mov edx, esi
mov esi, dword [esp + 0x28]
inc esi
mov edi, dword [eax + edi*4]
cmp ebx, esi
jae 0x50823b
mov dword [esp + 0x118], edi
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x6298c0]
mov dword [esp + 0x10], eax
call fcn.0044dbe0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x118]
mov eax, dword [0x860560]
test eax, eax
je 0x50825e
mov eax, edi
call fcn.00467c50
mov dword [edi], eax
mov ecx, dword [ebp + esi*4 - 4]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x12c]
mov edi, eax
mov dword [ebp + esi*4 - 4], edi
jmp 0x50862c
mov dword [esp + 0x70], edi
mov edx, dword [esp + 0x124]
mov ebp, dword [edx + 0x10]
nop
test ebp, ebp
je 0x5082e8
mov ebx, dword [0x860560]
mov eax, dword [ebp + 0x10]
test ebx, ebx
je 0x5082d8
mov dword [esp + 0x104], ebp
mov dword [esp + 0x118], eax
call fcn.00467c50
mov dword [edi], eax
mov ecx, dword [edx + 0x10]
mov dword [edi + 4], ecx
lea ecx, [0x62bfa0]
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.004114e0
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x124]
mov ebp, dword [esp + 0x104]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x70]
mov dword [edx + 0x10], eax
xor eax, eax
mov ebx, edi
mov edi, ebp
call fcn.00467ee1
jmp 0x50830e
lea eax, [0x62bfa0]
mov dword [esp], eax
call fcn.0040c2d0
mov ebp, dword [esp + 4]
mov eax, dword [esp + 0x124]
inc dword [eax + 0x2c]
mov edx, eax
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x118], ebp
mov byte [ebp], 3
movzx eax, word [esp + 0x24]
mov word [ebp + 2], ax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov edi, dword [esp + 0x44]
cmp edi, eax
jbe 0x50835e
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
lea eax, [0x60db40]
mov dword [esp + 0x10], eax
call fcn.0044dbe0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, eax
mov eax, edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x108], ecx
mov dword [esp], ecx
mov edx, dword [esp + 0xf4]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x44]
shl edx, 2
mov dword [esp + 8], edx
call fcn.004685e0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x118]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x860560]
test eax, eax
jne 0x5083b3
mov ebx, dword [esp + 0x108]
jmp 0x5083c7
call fcn.00467c50
mov ebx, dword [esp + 0x108]
mov dword [edi], ebx
mov ebp, dword [ecx + 0x14]
mov dword [edi + 4], ebp
mov dword [ecx + 0x14], ebx
mov ebx, dword [esp + 0x128]
mov ebp, dword [esp + 0x124]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x12c]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x70]
jmp 0x5091d9
mov esi, dword [esp + 0x130]
cmp esi, edx
jb 0x509240
mov edi, dword [esp + 0x70]
cmp edi, edx
ja 0x509237
mov dword [esp], ebp
sub esi, edi
mov dword [esp + 0x5c], esi
sub edx, edi
xchg esi, ebx
neg ebx
xchg esi, ebx
shl edi, 2
sar esi, 0x1f
and edi, esi
lea esi, [ebx + edi]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc], edx
mov byte [esp + 0x10], 0x13
call fcn.00507c70
mov eax, dword [esp + 0x124]
mov edi, dword [eax + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xe8], ecx
nop
test edi, edi
je 0x5084ca
mov dword [esp + 0x100], edi
mov ebx, dword [0x860560]
mov ebp, dword [edi + 0x10]
test ebx, ebx
je 0x5084b3
mov dword [esp + 0x114], ebp
mov ecx, edi
call fcn.00467c50
mov dword [edi], ebp
mov edx, dword [eax + 0x10]
mov dword [edi + 4], edx
lea edx, [0x62bfa0]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004114e0
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0xe8]
mov ebp, dword [esp + 0x114]
mov edi, dword [esp + 0x100]
mov dword [eax + 0x10], ebp
mov edx, eax
xor eax, eax
call fcn.00467ee1
mov eax, edx
mov edi, dword [esp + 0x100]
jmp 0x5084e6
lea eax, [0x62bfa0]
mov dword [esp], eax
call fcn.0040c2d0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x124]
inc dword [eax + 0x2c]
mov dword [esp + 0x100], edi
mov byte [edi], 0x12
mov ebx, dword [edi + 0xc]
mov ebp, dword [edi + 4]
cmp ebx, 2
jae 0x508537
mov dword [esp], ebp
mov dword [esp + 4], 2
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 2
lea eax, [0x6298c0]
mov dword [esp + 0x10], eax
call fcn.0044dbe0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x124]
mov edi, dword [esp + 0x100]
mov esi, dword [0x860560]
test esi, esi
jne 0x508555
mov ecx, edi
mov edx, ebx
mov ebx, dword [esp + 0xe8]
mov esi, dword [esp + 0x118]
jmp 0x50857d
mov ecx, edi
call fcn.00467c70
mov esi, dword [esp + 0x118]
mov dword [edi], esi
mov edx, dword [ebp]
mov dword [edi + 4], edx
mov edx, ebx
mov ebx, dword [esp + 0xe8]
mov dword [edi + 8], ebx
mov eax, dword [ebp + 4]
mov dword [edi + 0xc], eax
mov dword [ebp], esi
mov dword [ebp + 4], ebx
mov dword [ecx + 8], 2
mov dword [ecx + 0xc], edx
mov ebx, dword [0x860560]
test ebx, ebx
je 0x5085a4
call fcn.00467c50
mov dword [edi], ebp
mov ebx, dword [ecx + 4]
mov dword [edi + 4], ebx
mov dword [ecx + 4], ebp
mov ebx, dword [esp + 0x28]
inc ebx
mov ebp, dword [esp + 0x2c]
cmp ebp, ebx
jb 0x5085bd
mov eax, dword [esp + 0xdc]
jmp 0x5085ff
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x6298c0]
mov dword [esp + 0x10], eax
call fcn.0044dbe0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x100]
mov edx, eax
mov eax, ebp
mov ebp, edx
mov esi, dword [0x860560]
test esi, esi
je 0x508617
call fcn.00467c50
mov dword [edi], ecx
mov esi, dword [eax + ebx*4 - 4]
mov dword [edi + 4], esi
mov dword [eax + ebx*4 - 4], ecx
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x30]
mov esi, ebx
mov ebx, ebp
mov ebp, eax
mov eax, dword [esp + 0x128]
mov edx, dword [esp + 0x130]
mov edi, esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x94], eax
movzx eax, word [esp + 0x26]
mov word [esp + 0x24], ax
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x10c]
mov dword [esp + 0xf4], edx
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x84]
jmp 0x5080cc
mov ecx, dword [esp + 0x28]
mov eax, ebp
mov edx, ebx
xor esi, esi
xor edi, edi
xor eax, eax
mov dword [esp + 0xf0], eax
xor edx, edx
mov dword [esp + 0x78], edx
mov eax, ebp
mov edx, ebx
jmp 0x5086c1
mov edx, dword [esp + 0x30]
inc edx
mov dword [esp + 0x78], edi
mov edi, esi
mov esi, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x11c], ebp
cmp esi, ecx
jg 0x508b60
mov dword [esp + 0x30], esi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
jge 0x50883b
jae 0x50917b
mov edx, dword [eax + esi*4]
movzx ebp, byte [edx]
xchg ebp, eax
cmp al, 2
xchg ebp, eax
jne 0x5086f9
xor edx, edx
jmp 0x508719
xchg ebp, eax
cmp al, 0x12
xchg ebp, eax
jne 0x508719
mov ebp, dword [edx + 8]
test ebp, ebp
je 0x508719
mov ebp, dword [edx + 4]
mov ebp, dword [ebp]
cmp byte [ebp], 2
jne 0x508717
xor edx, edx
jmp 0x508719
mov edx, ebp
mov ebp, dword [esp + 0xf0]
test ebp, ebp
jne 0x50873a
mov dword [esp + 0xd4], eax
xor eax, eax
mov byte [esp + 0x23], al
mov eax, dword [esp + 0xd4]
jmp 0x50877b
mov dword [esp + 0xe0], edx
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.00510a00
movzx eax, byte [esp + 8]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xe0]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0xf0]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x70]
mov byte [esp + 0x23], al
mov eax, dword [esp + 0xdc]
movzx ebx, byte [esp + 0x23]
test bl, bl
je 0x508823
movzx ebx, byte [ebp]
cmp bl, 3
jne 0x508797
cmp dword [ebp + 0x18], 1
je 0x508802
cmp bl, 4
je 0x508802
cmp bl, 5
je 0x508802
cmp bl, 6
je 0x508802
cmp bl, 0x11
jne 0x508823
mov ebx, dword [ebp + 0x28]
cmp dword [ebp + 0x2c], ebx
jne 0x508823
mov ebx, dword [ebp + 8]
test ebx, ebx
jbe 0x509172
mov ebx, dword [ebp + 4]
mov ebx, dword [ebx]
movzx eax, byte [ebx]
cmp al, 3
jne 0x5087da
cmp dword [ebx + 0x18], 1
jne 0x5087da
mov eax, dword [esp + 0xdc]
jmp 0x508802
cmp al, 4
jne 0x5087e8
mov eax, dword [esp + 0xdc]
jmp 0x508802
cmp al, 5
jne 0x5087f6
mov eax, dword [esp + 0xdc]
jmp 0x508802
cmp al, 6
jne 0x50881c
mov eax, dword [esp + 0xdc]
mov edx, dword [esp + 0x2c]
mov esi, edi
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov ebp, dword [esp + 0x11c]
jmp 0x5086b0
mov eax, dword [esp + 0xdc]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x11c]
mov dword [esp + 0x118], edx
mov edx, dword [esp + 0x2c]
jmp 0x508852
mov dword [esp + 0xcc], eax
xor eax, eax
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0xcc]
cmp edi, esi
jne 0x50885f
mov edi, dword [esp + 0x78]
jmp 0x508b3f
lea edx, [edi + 1]
cmp esi, edx
jne 0x5088ed
cmp edi, ecx
jae 0x50916b
mov edx, esi
mov esi, dword [esp + 0x78]
inc esi
mov edi, dword [eax + edi*4]
cmp ebx, esi
jae 0x5088c4
mov dword [esp + 0x114], edi
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x6298c0]
mov dword [esp + 0x10], eax
call fcn.0044dbe0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x114]
mov eax, dword [0x860560]
test eax, eax
je 0x5088e4
mov eax, edi
call fcn.00467c50
mov dword [edi], eax
mov ecx, dword [ebp + esi*4 - 4]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x28]
mov edi, eax
mov dword [ebp + esi*4 - 4], edi
jmp 0x508b2e
mov edx, dword [esp + 0x124]
jmp 0x5090eb
mov edi, dword [esp + 0x2c]
cmp esi, edi
ja 0x50915b
mov ebp, dword [esp + 0x70]
cmp ebp, esi
ja 0x509152
mov dword [esp], edx
sub edi, ebp
mov dword [esp + 0x70], edi
sub esi, ebp
xchg edi, ebx
neg ebx
xchg edi, ebx
shl ebp, 2
sar edi, 0x1f
and ebp, edi
add ebp, eax
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov ebp, dword [esp + 0x70]
mov dword [esp + 0xc], ebp
mov byte [esp + 0x10], 0x13
call fcn.00507c70
mov eax, dword [esp + 0x124]
mov edi, dword [eax + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xe4], ecx
nop
test edi, edi
je 0x5089cf
mov dword [esp + 0xfc], edi
mov ebx, dword [0x860560]
mov ebp, dword [edi + 0x10]
test ebx, ebx
je 0x5089b8
mov dword [esp + 0x114], ebp
mov ecx, edi
call fcn.00467c50
mov dword [edi], ebp
mov edx, dword [eax + 0x10]
mov dword [edi + 4], edx
lea edx, [0x62bfa0]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004114e0
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0xe4]
mov ebp, dword [esp + 0x114]
mov edi, dword [esp + 0xfc]
mov dword [eax + 0x10], ebp
mov edx, eax
xor eax, eax
call fcn.00467ee1
mov eax, edx
mov edi, dword [esp + 0xfc]
jmp 0x5089eb
lea eax, [0x62bfa0]
mov dword [esp], eax
call fcn.0040c2d0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x124]
inc dword [eax + 0x2c]
mov dword [esp + 0xfc], edi
mov byte [edi], 0x12
mov ebx, dword [edi + 0xc]
mov ebp, dword [edi + 4]
cmp ebx, 2
jae 0x508a3c
mov dword [esp], ebp
mov dword [esp + 4], 2
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 2
lea eax, [0x6298c0]
mov dword [esp + 0x10], eax
call fcn.0044dbe0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x124]
mov edi, dword [esp + 0xfc]
mov esi, dword [0x860560]
test esi, esi
jne 0x508a5a
mov ecx, edi
mov edx, ebx
mov ebx, dword [esp + 0xe4]
mov esi, dword [esp + 0xf0]
jmp 0x508a82
mov ecx, edi
call fcn.00467c70
mov esi, dword [esp + 0xf0]
mov dword [edi], esi
mov edx, dword [ebp]
mov dword [edi + 4], edx
mov edx, ebx
mov ebx, dword [esp + 0xe4]
mov dword [edi + 8], ebx
mov eax, dword [ebp + 4]
mov dword [edi + 0xc], eax
mov dword [ebp], esi
mov dword [ebp + 4], ebx
mov dword [ecx + 8], 2
mov dword [ecx + 0xc], edx
mov ebx, dword [0x860560]
test ebx, ebx
je 0x508aa9
call fcn.00467c50
mov dword [edi], ebp
mov ebx, dword [ecx + 4]
mov dword [edi + 4], ebx
mov dword [ecx + 4], ebp
mov ebx, dword [esp + 0x78]
inc ebx
mov ebp, dword [esp + 0x74]
cmp ebp, ebx
jb 0x508ac2
mov eax, dword [esp + 0x11c]
jmp 0x508b04
mov eax, dword [esp + 0x11c]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x6298c0]
mov dword [esp + 0x10], eax
call fcn.0044dbe0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xfc]
mov edx, eax
mov eax, ebp
mov ebp, edx
mov esi, dword [0x860560]
test esi, esi
je 0x508b1c
call fcn.00467c50
mov dword [edi], ecx
mov esi, dword [eax + ebx*4 - 4]
mov dword [edi + 4], esi
mov dword [eax + ebx*4 - 4], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov esi, ebx
mov ebx, ebp
mov ebp, eax
mov eax, dword [esp + 0xdc]
mov edx, dword [esp + 0x2c]
mov edi, esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xc4]
jmp 0x5086b0
mov ecx, dword [esp + 0x78]
mov eax, ebp
xor edx, edx
xor esi, esi
xor edi, edi
jmp 0x508b80
inc esi
mov edx, esi
mov esi, ecx
mov edi, eax
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x28], edi
mov dword [esp + 0xdc], ebp
cmp edx, ecx
jg 0x508e4a
jge 0x508bdb
jae 0x509095
mov eax, dword [eax + edx*4]
movzx ecx, byte [eax]
cmp cl, 3
jne 0x508bac
cmp dword [eax + 0x18], 1
je 0x508bbb
cmp cl, 4
je 0x508bbb
cmp cl, 5
je 0x508bbb
cmp cl, 6
jne 0x508bd0
mov edi, dword [esp + 0x78]
mov ecx, esi
mov eax, dword [esp + 0x28]
mov esi, edx
mov edx, dword [esp + 0x11c]
jmp 0x508b6e
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x38], edx
cmp esi, edx
jne 0x508bf6
cmp edx, ecx
mov edx, eax
mov esi, dword [esp + 0x38]
mov edi, ecx
mov eax, dword [esp + 0x28]
jmp 0x508dbc
lea ebp, [esi + 1]
cmp edx, ebp
jne 0x508caf
cmp esi, ecx
jae 0x50908e
lea ebp, [edi + 1]
mov esi, dword [eax + esi*4]
cmp ebx, ebp
jb 0x508c1c
mov edi, dword [esp + 0xdc]
jmp 0x508c6b
mov dword [esp + 0x118], esi
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x6298c0]
mov dword [esp + 0x10], eax
call fcn.0044dbe0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x118]
mov edi, ebp
mov ebp, eax
mov eax, dword [0x860560]
test eax, eax
jne 0x508c79
cmp edx, ecx
jmp 0x508c95
mov dword [esp + 0x6c], ebx
mov eax, edi
call fcn.00467c50
mov dword [edi], esi
mov ebx, dword [eax + ebp*4 - 4]
mov dword [edi + 4], ebx
cmp edx, ecx
mov ebx, dword [esp + 0x6c]
mov edi, eax
mov dword [edi + ebp*4 - 4], esi
mov edx, dword [esp + 0x11c]
mov esi, dword [esp + 0x38]
mov eax, ebp
mov ebp, edi
mov edi, ecx
jmp 0x508dbc
mov dword [esp + 0x68], ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x64], esi
jmp 0x508f60
mov ebp, dword [esp + 0x64]
cmp ebp, ecx
jae 0x509079
mov ebx, dword [eax + ebp*4]
cmp esi, ecx
jae 0x509072
mov edi, dword [0x860560]
mov ecx, dword [eax + esi*4]
test edi, edi
je 0x508cfe
call fcn.00467c70
mov dword [edi], ecx
mov edx, dword [eax + ebp*4]
mov dword [edi + 4], edx
mov dword [edi + 8], ebx
mov edx, dword [eax + esi*4]
mov dword [edi + 0xc], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ebp*4], ecx
mov dword [eax + esi*4], ebx
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
jmp 0x508fb7
mov ecx, dword [eax + ebp*4]
mov dword [esp], ecx
call fcn.00507ab0
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x11c]
mov ecx, dword [edx + ecx*4]
mov ebx, dword [esp + 0x68]
cmp ebx, eax
jb 0x508d40
mov ebp, dword [esp + 0xdc]
jmp 0x508d8a
mov dword [esp + 0x118], ecx
mov ecx, dword [esp + 0xdc]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x6298c0]
mov dword [esp + 0x10], eax
call fcn.0044dbe0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x11c]
mov esi, dword [0x860560]
test esi, esi
jne 0x508da0
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x78]
cmp esi, edi
jmp 0x508db8
call fcn.00467c50
mov dword [edi], ecx
mov esi, dword [ebp + eax*4 - 4]
mov dword [edi + 4], esi
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x78]
cmp esi, edi
mov dword [ebp + eax*4 - 4], ecx
jge 0x508e42
jae 0x509062
inc eax
mov ecx, dword [edx + esi*4]
cmp ebx, eax
jae 0x508e1b
mov dword [esp + 0x118], ecx
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x6298c0]
mov dword [esp + 0x10], eax
call fcn.0044dbe0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x11c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x78]
mov edx, dword [0x860560]
test edx, edx
je 0x508e37
call fcn.00467c50
mov dword [edi], ecx
mov edx, dword [ebp + eax*4 - 4]
mov dword [edi + 4], edx
mov edi, dword [esp + 0x78]
mov dword [ebp + eax*4 - 4], ecx
mov edx, dword [esp + 0x11c]
lea ecx, [esi + 1]
jmp 0x508b6e
mov eax, ebp
xor ecx, ecx
xor edx, edx
jmp 0x508e5b
mov eax, dword [esp + 0xdc]
mov ecx, esi
cmp ecx, edi
jge 0x508f1a
lea esi, [ecx + 1]
cmp edi, esi
jle 0x508ea5
mov dword [esp + 0x110], ebp
mov ebp, dword [eax + ecx*4]
cmp byte [ebp], 2
jne 0x508e9e
cmp edi, esi
jbe 0x508f36
mov ebp, dword [eax + ecx*4 + 4]
cmp byte [ebp], 2
jne 0x508e95
mov ebp, dword [esp + 0x110]
jmp 0x508e52
mov ebp, dword [esp + 0x110]
jmp 0x508ea5
mov ebp, dword [esp + 0x110]
inc edx
mov ecx, dword [eax + ecx*4]
cmp ebx, edx
jae 0x508ef5
mov dword [esp + 0x60], esi
mov dword [esp + 0x118], ecx
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x6298c0]
mov dword [esp + 0x10], eax
call fcn.0044dbe0
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x118]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x28]
mov eax, dword [0x860560]
test eax, eax
je 0x508f11
call fcn.00467c50
mov dword [edi], ecx
mov eax, dword [ebp + edx*4 - 4]
mov dword [edi + 4], eax
mov edi, dword [esp + 0x28]
mov dword [ebp + edx*4 - 4], ecx
jmp 0x508e52
mov dword [esp + 0x134], ebp
mov dword [esp + 0x138], edx
mov dword [esp + 0x13c], ebx
add esp, 0x120
ret
mov eax, esi
mov ecx, edi
call fcn.00467cb0
inc eax
mov ecx, dword [esp + 0x11c]
mov ebx, dword [esp + 0x78]
mov ecx, ebx
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x28]
mov esi, ebp
mov ebp, eax
mov eax, dword [esp + 0x11c]
cmp ebp, edx
jge 0x508cc0
cmp esi, ecx
jae 0x509087
mov ebx, dword [eax + esi*4]
cmp ebp, ecx
jae 0x509080
movzx edi, byte [ebx]
mov eax, dword [eax + ebp*4]
movzx ecx, byte [eax]
xchg edi, eax
cmp cl, al
xchg edi, eax
ja 0x508f94
jne 0x508f98
mov ebx, dword [ebx + 0x18]
cmp dword [eax + 0x18], ebx
jle 0x508f98
mov eax, ebp
jmp 0x508f3f
mov eax, ebp
mov ebp, esi
jmp 0x508f3f
mov dword [ebp + 0x10], edi
mov dword [eax + 0x10], ebp
lea esi, [edx + 1]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x64]
mov edx, dword [esp + 0x38]
mov eax, ebx
mov ebx, esi
cmp ebx, edx
jge 0x508d11
mov esi, dword [eax + ebp*4]
cmp ebx, ecx
jae 0x50906b
mov dword [esp + 0x4c], ebx
mov ecx, dword [eax + ebx*4]
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.0050b450
mov eax, dword [esp + 0x124]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x11c]
mov ebp, dword [ebx + edx*4]
test ecx, ecx
je 0x50902f
mov dword [esp + 0xf8], ebp
lea edx, [0x6100a0]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.0040f4f0
mov eax, dword [esp + 0x124]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x11c]
mov ebp, dword [esp + 0xf8]
test byte [ebp], al
mov esi, dword [0x860560]
mov edi, dword [eax + 0x10]
test esi, esi
je 0x508f9e
mov ecx, edi
call fcn.00467c70
mov dword [edi], ecx
mov esi, dword [ebp + 0x10]
mov dword [edi + 4], esi
mov dword [edi + 8], ebp
mov esi, dword [eax + 0x10]
mov dword [edi + 0xc], esi
mov edi, ecx
jmp 0x508f9e
mov eax, esi
mov ecx, edi
call fcn.00467cb0
mov eax, ebx
call fcn.00467cb0
mov eax, esi
call fcn.00467cb0
mov eax, ebp
call fcn.00467cb0
mov eax, ebp
call fcn.00467cb0
mov eax, esi
call fcn.00467cb0
mov eax, esi
call fcn.00467cb0
mov eax, edx
call fcn.00467cb0
mov dword [edx + eax*4], ecx
mov ebx, dword [esp + 0x124]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.005062e0
mov eax, dword [esp + 0x50]
lea edi, [eax + 1]
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov ecx, ebx
mov edx, dword [esp + 0x124]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x11c]
mov esi, dword [esp + 0x30]
cmp edi, esi
jge 0x5088f9
cmp edi, ecx
jae 0x509164
mov dword [esp + 0x50], edi
mov ecx, dword [eax + edi*4]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x70]
cmp edi, ecx
setne bl
mov byte [esp + 8], bl
call fcn.00509620
mov eax, dword [0x860560]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x509135
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0xdc]
jmp 0x50909c
call fcn.00467c50
mov dword [edi], ecx
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0xdc]
mov ebx, dword [edx + eax*4]
mov dword [edi + 4], ebx
jmp 0x50909c
mov eax, ebp
mov ecx, esi
call fcn.00467d10
mov ecx, esi
mov edx, edi
call fcn.00467cf0
mov eax, edi
call fcn.00467cb0
mov eax, edi
call fcn.00467cb0
xor eax, eax
mov ecx, eax
call fcn.00467cb0
mov eax, esi
call fcn.00467cb0
mov dword [edx + eax*4], ecx
mov ebx, dword [esp + 0x124]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.005062e0
mov eax, dword [esp + 0x54]
lea edi, [eax + 1]
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x12c]
mov ebp, dword [esp + 0x30]
mov eax, ebx
mov ecx, dword [esp + 0x118]
mov edx, ebp
mov ebx, dword [esp + 0x128]
mov ebp, dword [esp + 0x124]
mov esi, dword [esp + 0x44]
cmp edi, edx
jge 0x5083f0
cmp eax, edi
jbe 0x509249
mov dword [esp + 0x54], edi
mov eax, dword [ebx + edi*4]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.005093a0
mov eax, dword [0x860560]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x50921a
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x128]
jmp 0x509182
call fcn.00467c50
mov dword [edi], ecx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x128]
mov ebx, dword [edx + eax*4]
mov dword [edi + 4], ebx
jmp 0x509182
mov eax, edi
mov ecx, edx
call fcn.00467d10
mov ecx, edx
mov edx, esi
call fcn.00467cf0
mov ecx, eax
mov eax, edi
call fcn.00467cb0
mov eax, edi
call fcn.00467cb0
mov ebp, dword [esp + 0xdc]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x78], ecx
mov word [esp + 0xa4], dx
mov edx, dword [esp + 0xec]
mov dword [esp + 0x10c], edx
mov dword [esp + 0x9c], ebx
movzx ebx, word [esp + 0xa4]
mov word [esp + 0x26], bx
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xac]
mov ebx, dword [esp + 0x9c]
jmp 0x5081c6
lea eax, [ebx + 1]
mov ecx, dword [esp + 0xf4]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x12c]
mov ebx, dword [esp + 0x2c]
movzx ebp, word [esp + 0x24]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x128]
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x34]
cmp esi, ebx
jle 0x509338
mov ebp, dword [esp + 0x3c]
cmp ebx, ebp
jge 0x50933c
mov ebp, dword [esp + 0xf4]
mov eax, dword [ebp + ebx*4]
mov ebp, dword [esp + 0xec]
lea ecx, [ebp + ebx*4]
cmp dword [ecx], eax
je 0x5092c9
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x12c]
mov ebp, dword [esp + 0x3c]
jmp 0x50933c
mov ebp, dword [esp + 0x3c]
test ebx, ebx
jle 0x509369
mov edx, dword [esp + 0x48]
cmp edx, ebx
jb 0x50937b
mov edx, dword [esp + 0x130]
mov esi, edi
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0xdc]
jmp 0x5080cc
mov ebx, dword [esp + 0x2c]
movzx ebp, word [esp + 0x24]
mov esi, dword [esp + 0x30]
jmp 0x509259
mov ecx, ebx
call fcn.00467cf0
mov eax, esi
call fcn.00467cb0
nop
call fcn.00466840
jmp fcn.00508030