Function at 0x502b50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
mov dword [0x603998], 0
call fcn.005004b0
mov dword [0x602854], 0
push 0x578e88
push 0x1102609
call fcn.00532680
add esp, 8
test eax, eax
je 0x502bbc
mov dword [0x602854], 1
cmp dword [0x6027dc], 0
je 0x50327d
mov eax, dword [0x5fdb08]
push eax
call fcn.00460c80
add esp, 4
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0xe8], 0xffffffff
mov dword [ebp - 0xf8], 0xffffffff
mov dword [ebp - 0xf4], 0
xor ecx, ecx
mov word [ebp - 0x100], cx
mov dword [ebp - 0xc], 0
jmp 0x502c16
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 7
jge 0x502c2c
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x11c], 0
jmp 0x502c0d
mov dword [ebp - 0x11c], 1
mov ecx, dword [0x5f4290]
add ecx, 1
mov dword [0x602830], ecx
cmp dword [0x5614a4], 3
jne 0x502c6e
push str.dyned_seq.txt
push 0x5c5ed8
push 0x578e9c
lea edx, [ebp - 0x228]
push edx
call fcn.00532706
add esp, 0x10
jmp 0x502c8c
push str.dyned_rec.txt
push 0x5c5ed8
push 0x578eb4
lea eax, [ebp - 0x228]
push eax
call fcn.00532706
add esp, 0x10
push 1
push 0x578ebc
lea ecx, [ebp - 0x228]
push ecx
call fcn.00459360
add esp, 0xc
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0
je 0x502d81
push 2
push 0
mov edx, dword [ebp - 0xec]
push edx
call fcn.00532940
add esp, 0xc
mov eax, dword [ebp - 0xec]
push eax
call fcn.00532b62
add esp, 4
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], 0
jle 0x502d72
mov ecx, dword [ebp - 0xec]
push ecx
call fcn.005352ea
add esp, 4
mov edx, dword [0x602830]
mov eax, dword [ebp - 0xf0]
lea ecx, [eax + edx*4 + 2]
push ecx
call fcn.005324a9
add esp, 4
mov dword [0x602870], eax
mov edx, dword [0x602830]
mov eax, dword [0x602870]
lea ecx, [eax + edx*4]
mov dword [ebp - 0xfc], ecx
cmp dword [0x602870], 0
je 0x502d72
mov edx, dword [ebp - 0xec]
push edx
mov eax, dword [ebp - 0xf0]
push eax
push 1
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.0053367b
add esp, 0x10
mov edx, dword [ebp - 0xfc]
add edx, dword [ebp - 0xf0]
mov byte [edx], 0
mov eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0xf0]
mov byte [eax + 1], 0
mov ecx, dword [ebp - 0xec]
push ecx
call fcn.00431d50
add esp, 4
mov edx, dword [0x602830]
push edx
call fcn.005003e0
add esp, 4
mov eax, dword [0x602870]
mov dword [ebp - 0x124], eax
mov ecx, dword [0x602830]
mov edx, dword [0x602870]
lea eax, [edx + ecx*4]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xc], 0
jmp 0x502dc2
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x602830]
jge 0x503278
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x1c
mov ecx, dword [eax + 0x1096888]
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x1c
mov eax, dword [edx + 0x109688c]
mov dword [ebp - 0x234], eax
cmp dword [0x5fdb08], 0x3d
jne 0x502e0e
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x1c
mov dword [ecx + 0x1096890], 3
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x1c
mov dword [edx + 0x1096880], 0
cmp dword [ebp - 0x23c], 0
jne 0x502e32
cmp dword [ebp - 0x234], 0
jne 0x502e32
jmp 0x502db9
push 3
push 0x578ec0
mov eax, dword [ebp - 0xfc]
push eax
call fcn.00532db5
add esp, 0xc
test eax, eax
jne 0x502f2c
cmp dword [0x602854], 0
je 0x502f2c
push 0xb
mov ecx, dword [ebp - 0xfc]
add ecx, 3
push ecx
lea edx, [ebp - 0x254]
push edx
call fcn.00532bd0
add esp, 0xc
mov byte [ebp - 0x249], 0
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x240]
push ecx
call fcn.004344f0
add esp, 8
movsx edx, word [ebp - 0x240]
movsx eax, word [ebp - 0x100]
cmp edx, eax
jle 0x502f2c
mov cx, word [ebp - 0x240]
mov word [ebp - 0x100], cx
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x25c]
push ecx
movsx edx, word [ebp - 0x100]
push edx
call fcn.00434b50
add esp, 0x10
mov ax, word [ebp - 0x25c]
mov word [ebp - 0xdc], ax
mov cx, word [ebp - 0x260]
mov word [ebp - 0xde], cx
movsx edx, word [ebp - 0x258]
add edx, 0x7bc
mov word [ebp - 0xe0], dx
mov dword [0x6024e4], 0xffffffff
lea eax, [ebp - 0xe0]
push eax
push 0x6024e4
call fcn.00503770
add esp, 8
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0xfc]
mov dword [ecx], edx
mov eax, dword [ebp - 0x124]
add eax, 4
mov dword [ebp - 0x124], eax
push 0xd
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.005350b0
add esp, 8
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x502f80
push 0xa
mov edx, dword [ebp - 0xfc]
push edx
call fcn.005350b0
add esp, 8
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xfc], 0
je 0x502fca
mov ecx, dword [ebp - 0xfc]
mov byte [ecx], 0
mov edx, dword [ebp - 0xfc]
add edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp - 0xfc]
movsx ecx, byte [eax]
cmp ecx, 0x20
jge 0x502fca
mov edx, dword [ebp - 0xfc]
add edx, 1
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp - 0x22c]
imul eax, eax, 0x1564
mov ecx, dword [ebp - 0x23c]
imul ecx, ecx, 0x94
lea edx, [eax + ecx + 0x667080]
mov eax, dword [ebp - 0x234]
cmp dword [edx + eax*4], 0
jne 0x50306d
mov ecx, dword [0x60282c]
mov edx, dword [0x6027e4]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx*4], eax
mov ecx, dword [0x60282c]
mov edx, dword [0x6027e8]
mov dword [edx + ecx*4], 1
mov eax, dword [0x60282c]
add eax, 1
mov dword [0x60282c], eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x1c
mov dword [ecx + 0x1096880], 1
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x1c
mov eax, dword [edx + 0x1096884]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 1
jne 0x50305e
mov dword [ebp - 0x118], 0
jmp 0x503068
mov dword [ebp - 0x118], 1
jmp 0x502db9
mov ecx, dword [ebp - 0xe8]
cmp ecx, dword [ebp - 0x23c]
jne 0x503131
mov edx, dword [ebp - 0xf8]
cmp edx, dword [ebp - 0x234]
jne 0x503131
mov eax, dword [ebp - 0xf4]
cmp dword [ebp + eax*4 - 0x120], 0
je 0x50312c
mov ecx, dword [0x60282c]
mov edx, dword [0x6027e4]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx*4], eax
mov ecx, dword [0x60282c]
mov edx, dword [0x6027e8]
mov eax, dword [ebp - 0xf4]
mov dword [edx + ecx*4], eax
mov ecx, dword [0x60282c]
add ecx, 1
mov dword [0x60282c], ecx
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x1c
mov eax, dword [ebp - 0xf4]
mov dword [edx + 0x1096880], eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x1c
mov edx, dword [ecx + 0x1096884]
mov dword [ebp - 0x120], edx
cmp dword [ebp - 0x120], 1
jne 0x50311b
mov eax, dword [ebp - 0xf4]
mov dword [ebp + eax*4 - 0x11c], 0
jmp 0x50312c
mov ecx, dword [ebp - 0xf4]
mov dword [ebp + ecx*4 - 0x11c], 1
jmp 0x502db9
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
mov eax, dword [0x5fdb08]
push eax
call fcn.004fc3c0
add esp, 0xc
mov dword [ebp - 0x238], eax
cmp dword [0x5fdb08], 0x3b
jne 0x50318c
cmp dword [ebp - 0x234], 0x22
jne 0x50318c
mov ecx, dword [ebp - 0x238]
add ecx, 1
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
add edx, 1
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0xf4]
mov dword [eax + 0x1096880], ecx
mov edx, dword [ebp - 0x238]
cmp dword [ebp + edx*4 - 0x120], 0
je 0x503262
mov eax, dword [0x60282c]
mov ecx, dword [0x6027e4]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4], edx
mov eax, dword [0x60282c]
mov ecx, dword [0x6027e8]
mov edx, dword [ebp - 0x238]
mov dword [ecx + eax*4], edx
mov eax, dword [0x60282c]
add eax, 1
mov dword [0x60282c], eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x1c
mov edx, dword [ebp - 0x238]
mov dword [ecx + 0x1096880], edx
cmp dword [ebp - 0xf4], 4
jle 0x503221
mov eax, dword [ebp - 0x238]
mov dword [ebp + eax*4 - 0x11c], 1
jmp 0x503260
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x1c
mov edx, dword [ecx + 0x1096884]
mov dword [ebp - 0x120], edx
cmp dword [ebp - 0x120], 1
jne 0x50324f
mov eax, dword [ebp - 0x238]
mov dword [ebp + eax*4 - 0x11c], 0
jmp 0x503260
mov ecx, dword [ebp - 0x238]
mov dword [ebp + ecx*4 - 0x11c], 1
jmp 0x503273
mov edx, dword [ebp - 0x238]
mov dword [ebp + edx*4 - 0x11c], 0
jmp 0x502db9
jmp 0x5036e7
mov eax, dword [0x602720]
imul eax, eax, 0x127c
add eax, 0x11a6ec0
push eax
push 0x1102600
call fcn.004f8b20
add esp, 8
mov dword [0x602868], eax
mov ecx, dword [0x602868]
push ecx
push 0x1102600
call fcn.004f9110
add esp, 8
mov edx, dword [0x602868]
push edx
push 0x1102600
call fcn.004f9000
add esp, 8
mov dword [0x602830], eax
mov eax, dword [0x602830]
push eax
call fcn.004397e0
add esp, 4
mov ecx, dword [0x602830]
imul ecx, ecx, 3
add ecx, 3
push ecx
call fcn.005003e0
add esp, 4
mov dword [ebp - 0xc], 0
jmp 0x503302
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x602830]
jge 0x503364
mov ecx, dword [0x602868]
push ecx
lea edx, [ebp - 0xe0]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0x1102600
call fcn.004f8e80
add esp, 0x10
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
je 0x503362
cmp dword [0x602854], 0
je 0x503362
mov dword [0x6024e4], 0xffffffff
lea ecx, [ebp - 0xe0]
push ecx
push 0x6024e4
call fcn.00503770
add esp, 8
jmp 0x5032f9
mov dword [ebp - 0xc], 0
jmp 0x503376
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x602830]
jge 0x503587
mov ecx, dword [0x602868]
push ecx
lea edx, [ebp - 0xe0]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0x1102600
call fcn.004f8e80
add esp, 0x10
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
je 0x503582
movsx ecx, word [ebp - 0xc8]
and ecx, 2
jne 0x5033cd
mov dword [0x603998], 1
mov edx, dword [ebp - 0xc]
push edx
push 0
lea eax, [ebp - 0xe0]
push eax
call fcn.00439a20
add esp, 0xc
cmp dword [0x602854], 0
je 0x503408
lea ecx, [ebp - 0xe0]
push ecx
push 0x6024e4
call fcn.00503770
add esp, 8
movsx edx, ax
mov dword [ebp - 0x268], edx
movsx eax, word [ebp - 0xb0]
push eax
call fcn.0042db70
add esp, 4
cmp eax, 1
jne 0x503436
lea ecx, [ebp - 0xe0]
push ecx
call fcn.00452750
add esp, 4
cmp eax, 1
jne 0x503436
jmp 0x50336d
movsx edx, word [0x5f42d8]
test edx, edx
jne 0x503464
movsx eax, word [0x5f42d4]
cmp dword [ebp - 0x268], eax
jl 0x50345f
movsx ecx, word [0x5614a8]
cmp dword [ebp - 0x268], ecx
jle 0x503464
jmp 0x50336d
mov edx, dword [ebp - 0x268]
cmp edx, dword [ebp - 8]
je 0x503520
cmp dword [ebp - 0x10], 0
jl 0x503497
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x6027e8]
mov edx, dword [ebp - 0xe4]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xe4]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x5034d8
mov ecx, dword [0x60282c]
mov edx, dword [0x6027e4]
mov eax, dword [ebp - 0x10]
mov esi, dword [0x6027e4]
mov eax, dword [esi + eax*4]
mov dword [edx + ecx*4], eax
mov ecx, dword [0x60282c]
mov edx, dword [0x6027e8]
mov dword [edx + ecx*4], 0xfffffffe
mov eax, dword [0x60282c]
add eax, 1
mov dword [0x60282c], eax
mov ecx, dword [0x60282c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xe4], 0
or edx, 0xffffffff
sub edx, dword [ebp - 0xc]
mov eax, dword [0x60282c]
mov ecx, dword [0x6027e4]
mov dword [ecx + eax*4], edx
mov edx, dword [0x60282c]
mov eax, dword [0x6027e8]
mov dword [eax + edx*4], 0
mov ecx, dword [0x60282c]
add ecx, 1
mov dword [0x60282c], ecx
mov edx, dword [0x60282c]
mov eax, dword [0x6027e4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + edx*4], ecx
mov edx, dword [0x60282c]
mov eax, dword [0x6027e8]
mov dword [eax + edx*4], 0
mov ecx, dword [0x60282c]
add ecx, 1
mov dword [0x60282c], ecx
mov edx, dword [ebp - 0x268]
mov dword [ebp - 8], edx
push 0
lea eax, [ebp - 0xe0]
push eax
call fcn.004524d0
add esp, 8
test eax, eax
jne 0x503582
mov ecx, dword [ebp - 0xe4]
add ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xe4], ecx
jmp 0x50336d
call fcn.00439c60
cmp dword [ebp - 0x10], 0
jl 0x5035af
mov edx, dword [ebp - 0x10]
mov eax, dword [0x6027e8]
mov ecx, dword [ebp - 0xe4]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xe4]
mov dword [ebp - 4], edx
or eax, 0xffffffff
sub eax, dword [0x602830]
sub eax, 1
mov ecx, dword [0x60282c]
mov edx, dword [0x6027e4]
mov dword [edx + ecx*4], eax
mov eax, dword [0x60282c]
mov ecx, dword [0x6027e8]
mov dword [ecx + eax*4], 0xffffffff
mov edx, dword [0x60282c]
add edx, 1
mov dword [0x60282c], edx
or eax, 0xffffffff
sub eax, dword [0x602830]
sub eax, 1
mov ecx, dword [0x60282c]
mov edx, dword [0x6027e4]
mov dword [edx + ecx*4], eax
mov eax, dword [0x60282c]
mov ecx, dword [0x6027e8]
mov edx, dword [ebp - 4]
mov dword [ecx + eax*4], edx
mov eax, dword [0x60282c]
add eax, 1
mov dword [0x60282c], eax
mov dword [ebp - 0xc], 0
jmp 0x503636
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov eax, dword [0x60282c]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0xc], eax
jge 0x5036e7
mov edx, dword [ebp - 0xc]
mov eax, dword [0x6027e4]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x26c], ecx
mov edx, dword [0x60282c]
sub edx, 1
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x6027e4]
mov esi, dword [0x6027e4]
mov edx, dword [esi + edx*4]
mov dword [ecx + eax*4], edx
mov eax, dword [0x60282c]
sub eax, 1
sub eax, dword [ebp - 0xc]
mov ecx, dword [0x6027e4]
mov edx, dword [ebp - 0x26c]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x6027e8]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x26c], edx
mov eax, dword [0x60282c]
sub eax, 1
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x6027e8]
mov esi, dword [0x6027e8]
mov eax, dword [esi + eax*4]
mov dword [edx + ecx*4], eax
mov ecx, dword [0x60282c]
sub ecx, 1
sub ecx, dword [ebp - 0xc]
mov edx, dword [0x6027e8]
mov eax, dword [ebp - 0x26c]
mov dword [edx + ecx*4], eax
jmp 0x50362d
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret