Function at 0x1007c840
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
push esi
push edi
push 0x60
lea ecx, [esp + 0x84]
push 0
push ecx
mov dword [esp + 0x28], eax
call fcn.1012a6a0
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
add esp, 0xc
cmp ax, 0x40
mov dword [esp + 0x80], ebx
jle 0x1007c89a
push 0x40
push str.at_most__d_tables_in_a_join
mov edi, ebx
call fcn.10025f30
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x1c]
and ecx, 0x40
mov dword [esp + 0x3c], ecx
je 0x1007c8b0
mov dword [esp + 0xc], 1
jmp 0x1007c8b5
cwde
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0xc]
mov esi, dword [ebx]
imul edi, edi, 0x58
add edi, 0x3f
and edi, 0xfffffff8
lea ecx, [edi + 0x264]
mov dword [esp + 0x24], esi
call fcn.100240e0
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x1007c8ef
lea eax, [edi + 0x264]
push eax
push 0
push esi
call fcn.1012a6a0
add esp, 0xc
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x38], 0
je 0x1007c909
mov eax, esi
call fcn.10023eb0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1c], edx
mov dword [esi], ebx
call fcn.1003e6e0
mov cx, word [ebp + 0x1c]
mov dword [esi + 0x18], eax
add edi, esi
mov dword [esp + 0x84], edi
mov dword [esi + 0x20], edi
mov word [esi + 0xa], cx
fld qword [ebx + 0x1b8]
lea eax, [esi + 0x38]
fstp qword [esi + 0x28]
mov edx, dword [esp + 0x84]
mov dword [esp + 0xb4], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
add edx, 0x160
test byte [eax + 0x34], 0x20
mov dword [esp + 0x2c], edx
je 0x1007c971
mov dword [ebp + 0x18], 0
push 0x104
mov edi, edx
push 0
push edi
call fcn.1012a6a0
mov eax, dword [esp + 0x90]
mov dx, word [ebp + 0x1c]
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ecx
lea ecx, [eax + 0x20]
mov word [eax + 0xe], dx
mov edx, dword [ebp + 0x10]
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 0x14], 8
mov dword [eax + 0x18], ecx
add esp, 0xc
mov eax, ebx
call fcn.10050f20
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x84]
push 0x45
push eax
push ecx
call fcn.10076f80
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x1007c9f8
cmp dword [esp + 0xc], 0
je 0x1007c9e5
mov eax, dword [ebp + 0x10]
call fcn.1004e100
test eax, eax
je 0x1007c9f8
mov edx, dword [esi + 0x18]
mov eax, dword [ebp + 0x10]
push 8
push edx
push eax
push ebx
call fcn.10051450
add esp, 0x10
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
xor eax, eax
cmp cx, word [ebx]
jge 0x1007ca1c
lea ecx, [ebx + 0x34]
mov edx, dword [edi]
mov esi, dword [ecx]
mov dword [edi + edx*4 + 4], esi
inc dword [edi]
movsx edx, word [ebx]
inc eax
add ecx, 0x48
cmp eax, edx
jl 0x1007ca07
mov edi, dword [esp + 0x84]
mov esi, dword [edi + 0x10]
sub esi, 1
js 0x1007ca47
jmp 0x1007ca30
push esi
push edi
push ebx
call fcn.10077ea0
add esp, 0xc
sub esi, 1
jns 0x1007ca30
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x38], 0
jne 0x1007cf4a
mov esi, dword [ebp + 0x18]
xor ebx, ebx
cmp esi, ebx
je 0x1007ca7d
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push esi
push edi
push ecx
call fcn.100788b0
add esp, 0xc
test eax, eax
je 0x1007ca7d
mov edx, dword [esp + 0x10]
xor esi, esi
mov byte [edx + 0xe], 1
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x14]
or edx, 0xffffffff
cmp eax, ebx
mov dword [esp + 0xa4], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xb0], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0x18], esi
jle 0x1007cf0b
dec eax
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x28]
fld qword [0x1038bf10]
xor eax, eax
or ecx, 0xffffffff
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
fstp qword [esp + 0x70]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x50], eax
cmp edi, dword [esp + 0x30]
jne 0x1007cb20
mov dword [esp + 0x44], eax
jmp 0x1007cbba
cmp edi, dword [esp + 0xc]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [edi + edi*8]
lea esi, [ecx + eax*8 + 8]
mov dword [esp + 0x88], esi
jge 0x1007cbba
jmp 0x1007cb40
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp dword [eax], ecx
jle 0x1007cb60
mov edx, dword [esi + 0x2c]
mov ebx, dword [esp + 0x2c]
add eax, 4
cmp dword [eax], edx
je 0x1007cb82
inc ecx
add eax, 4
cmp ecx, dword [ebx]
jl 0x1007cb54
xor eax, eax
xor edx, edx
and eax, dword [esp + 0x98]
and edx, dword [esp + 0x9c]
or eax, edx
jne 0x1007cb90
cmp edi, dword [esp + 0x28]
jne 0x1007cba9
inc dword [esp + 0x28]
jmp 0x1007cba9
mov eax, 1
xor edx, edx
call fcn.1012a990
jmp 0x1007cb64
cmp edi, dword [esp + 0x28]
jle 0x1007cb9c
test byte [esi + 0x20], 0xa
jne 0x1007cbba
add dword [esp + 0x44], 1
jne 0x1007cbba
test byte [esi + 0x20], 8
jne 0x1007cbba
inc edi
add esi, 0x48
cmp edi, dword [esp + 0xc]
mov dword [esp + 0x88], esi
jl 0x1007cb40
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], eax
test eax, eax
jl 0x1007cde2
cmp dword [esp + 0x14], 0
jge 0x1007cde2
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
lea edx, [eax + eax*8]
lea ebx, [ecx + edx*8 + 8]
mov dword [esp + 0x48], eax
mov dword [esp + 0x88], ebx
jge 0x1007cdd7
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov edx, eax
imul edx, edx, 0x58
lea edx, [edx + ecx + 0x80]
mov dword [esp + 0x20], edx
jmp 0x1007cc16
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x48], eax
jle 0x1007cc26
test byte [ebx + 0x20], 0xa
jne 0x1007cdd7
xor ecx, ecx
cmp dword [edi], ecx
jle 0x1007cc3e
mov edx, dword [ebx + 0x2c]
lea eax, [edi + 4]
cmp dword [eax], edx
je 0x1007cc6d
inc ecx
add eax, 4
cmp ecx, dword [edi]
jl 0x1007cc32
xor eax, eax
xor edx, edx
mov ecx, eax
and ecx, dword [esp + 0x98]
mov esi, edx
and esi, dword [esp + 0x9c]
or ecx, esi
je 0x1007cdb5
mov esi, dword [esp + 0x54]
test esi, esi
je 0x1007cc7b
mov dword [esp + 0x94], edx
jmp 0x1007cc90
mov eax, 1
xor edx, edx
call fcn.1012a990
jmp 0x1007cc42
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], eax
cmp dword [ebx + 0x44], 0
jne 0x1007cca1
inc dword [esp + 0x50]
mov edx, dword [ebx + 0x10]
test byte [edx + 0x2a], 0x10
je 0x1007ccc7
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x80]
lea eax, [ebx + 8]
push ecx
mov dword [esp + 0xac], eax
call fcn.100796e0
jmp 0x1007ccd8
lea edx, [esp + 0x80]
push edx
call fcn.10079da0
mov ebx, dword [esp + 0x24]
add esp, 4
test esi, esi
je 0x1007ccea
fld qword [esp + 0xd0]
fstp qword [ebx]
jmp 0x1007cd01
cmp dword [esp + 0x44], 0
je 0x1007cd01
fld qword [esp + 0xd0]
fdiv qword [ebx]
fstp qword [esp + 0xd0]
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
and eax, dword [esp + 0x98]
and ecx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x88]
or eax, ecx
jne 0x1007cdaf
cmp dword [esp + 0x50], 0
je 0x1007cd46
cmp dword [ebx + 0x44], 0
je 0x1007cd46
test dword [esp + 0xb8], 0x100f3000
je 0x1007cdaf
cmp dword [esp + 0x14], 0
jl 0x1007cd91
fld qword [esp + 0x70]
fld qword [esp + 0xd0]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x1007cd8d
fcompp
fnstsw ax
test ah, 0x41
je 0x1007cdaf
mov ax, word [esp + 0xbe]
cmp ax, word [esp + 0x5e]
ja 0x1007cd91
fld qword [esp + 0x60]
fcomp qword [esp + 0xc0]
fnstsw ax
test ah, 0x41
jne 0x1007cdaf
jmp 0x1007cd91
fstp st(1)
fstp st(0)
mov ecx, 0xa
lea esi, [esp + 0xb8]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
test byte [ebx + 0x20], 8
jne 0x1007cdd7
mov eax, dword [esp + 0x48]
add dword [esp + 0x20], 0x58
inc eax
add ebx, 0x48
cmp eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
mov dword [esp + 0x88], ebx
jl 0x1007cc12
sub dword [esp + 0x54], 1
jns 0x1007cbca
mov eax, dword [esp + 0x58]
test eax, 0x40000000
je 0x1007cdf5
mov edx, dword [esp + 0x10]
mov byte [edx + 0xe], 2
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
and dword [esp + 0x4c], eax
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [edi + 8], edx
mov edx, dword [esp + 0x68]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx*8]
mov ecx, dword [ebp + 0xc]
lea esi, [ecx + edx*8]
mov edx, dword [esi + 0x34]
mov dword [edi + 0x1c], edx
test eax, 0x200f0000
je 0x1007ce61
cmp word [esp + 0x3c], 0
je 0x1007ce53
test eax, 0x20000000
jne 0x1007ce53
mov eax, dword [ebp + 0x20]
mov dword [edi + 0x20], eax
jmp 0x1007ce68
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
mov dword [edi + 0x20], ecx
inc dword [eax + 0x48]
jmp 0x1007ce68
mov dword [edi + 0x20], 0xffffffff
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
cmp dword [ebx], ecx
jle 0x1007ce84
mov edx, dword [esi + 0x34]
lea eax, [ebx + 4]
cmp dword [eax], edx
je 0x1007cec3
inc ecx
add eax, 4
cmp ecx, dword [ebx]
jl 0x1007ce78
xor eax, eax
xor edx, edx
fld1
not eax
fld qword [esp + 0x60]
and dword [esp + 0x98], eax
fcom st(1)
not edx
and dword [esp + 0x9c], edx
mov dl, byte [esp + 0x14]
mov byte [edi + 0x34], dl
fnstsw ax
fstp st(1)
test ah, 1
jne 0x1007ced1
mov eax, dword [ebp + 8]
fmul qword [eax + 0x1b8]
fstp qword [eax + 0x1b8]
jmp 0x1007ced3
mov eax, 1
xor edx, edx
call fcn.1012a990
jmp 0x1007ce88
fstp st(0)
mov esi, dword [esi + 0x4c]
test esi, esi
je 0x1007cee4
test dword [esp + 0x58], 0xf0000
je 0x1007cf37
mov eax, dword [esp + 0xac]
inc eax
add edi, 0x58
cmp eax, dword [esp + 0xc]
mov dword [esp + 0xac], eax
mov dword [esp + 0x18], edi
jl 0x1007cace
mov esi, dword [esp + 0x40]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x44], 0
jne 0x1007cf4a
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x38], 0
jne 0x1007cf4a
cmp dword [esp + 0xc], 0
mov ebx, dword [esp + 0x10]
je 0x1007cf71
mov edx, dword [esp + 0x18]
mov ax, word [edx - 0x52]
mov word [ebx + 8], ax
jmp 0x1007cf77
mov eax, dword [esi]
mov edi, dword [ebp + 8]
push eax
push str.cannot_use_index:__s
call fcn.10025f30
add esp, 8
mov eax, dword [esp + 0x10]
fld qword [eax + 0x28]
mov edx, dword [ebp + 8]
push eax
fstp qword [edx + 0x1b8]
mov eax, dword [esp + 0x28]
push eax
call fcn.1007c7b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
mov word [ebx + 8], dx
mov eax, dword [esp + 0x4c]
and eax, 0x2000000
je 0x1007cf8d
test ecx, ecx
je 0x1007cf8d
mov cx, word [ecx]
mov word [ebx + 8], cx
test byte [ebp + 0x1c], 4
je 0x1007cfa1
test eax, eax
je 0x1007cfa1
and dword [esi], 0xffbfffff
mov byte [ebx + 0xc], 1
mov eax, dword [ebp + 8]
or edi, 0xffffffff
push edi
call fcn.10059ee0
fld1
mov eax, dword [esp + 0x10]
fstp qword [ebx + 0x30]
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], esi
test eax, eax
jle 0x1007d2dc
mov dword [esp + 0x40], eax
mov edi, esi
movzx eax, byte [edi + 0x34]
fld qword [edi + 8]
fmul qword [ebx + 0x30]
lea edx, [eax + eax*8]
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + edx*8 + 0x18]
lea eax, [eax + edx*8 + 8]
fstp qword [ebx + 0x30]
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x20], eax
mov eax, 0xfff0bdc0
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x1007d035
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x14]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], ecx
test ecx, ecx
jle 0x1007d035
mov ecx, dword [edx + 0x10]
add ecx, 0xc
lea ecx, [ecx]
mov edx, dword [esi + 0x40]
cmp dword [ecx], edx
je 0x1007d031
inc eax
add ecx, 0x10
cmp eax, dword [esp + 0x3c]
jl 0x1007d020
mov dword [esp + 0x14], eax
mov cl, byte [esi + 0x2a]
test cl, 2
jne 0x1007d1b3
cmp dword [esi + 0xc], 0
jne 0x1007d1b3
mov edi, dword [edi]
test edi, 0x8000000
je 0x1007d124
mov ebx, dword [esi + 0x38]
xor ecx, ecx
cmp ebx, ecx
je 0x1007d071
mov eax, dword [esp + 0x24]
cmp dword [ebx], eax
je 0x1007d071
mov ebx, dword [ebx + 0x18]
cmp ebx, ecx
jne 0x1007d066
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x1c]
cmp dword [eax + 0x20], esi
jg 0x1007d09e
mov edi, eax
call fcn.1003e3d0
test eax, eax
je 0x1007d09a
mov eax, 1
jmp 0x1007d0c7
xor ecx, ecx
mov eax, edi
inc dword [eax + 0x1c]
mov eax, dword [eax + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x3c]
mov byte [eax], 0x87
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
test esi, esi
je 0x1007d1b3
cmp byte [edi + 0x38], 0
jne 0x1007d1b3
test eax, eax
jge 0x1007d0ec
mov eax, ecx
mov eax, dword [eax + 0x1c]
dec eax
lea ecx, [eax + eax*4]
movsx eax, byte [esi + ecx*4 + 1]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 0x10]
call fcn.1003e980
mov dword [esi + 0x10], 0
test ebx, ebx
jne 0x1007d115
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x1007d1b3
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xf6
inc dword [ebx + 0xc]
jmp 0x1007d1b3
test cl, 0x10
jne 0x1007d1b3
test edi, 0x400000
jne 0x1007d19e
test byte [ebp + 0x1c], 0x10
jne 0x1007d19e
mov edi, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
xor edx, edx
cmp byte [ebx + 0xc], dl
setne dl
add edx, 0x27
push edx
push eax
mov eax, dword [edi + 0x2c]
push eax
mov eax, esi
call fcn.10060cd0
add esp, 0xc
cmp byte [ebx + 0xc], 0
jne 0x1007d1b3
cmp word [esi + 0x26], 0x40
jge 0x1007d1b3
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
mov esi, eax
xor edx, edx
or esi, ecx
je 0x1007d185
shrd eax, ecx, 1
shr ecx, 1
mov esi, eax
inc edx
or esi, ecx
jne 0x1007d178
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x1c]
push edx
push ecx
dec eax
mov ecx, 0xfffffff2
call fcn.1003eb10
add esp, 8
jmp 0x1007d1b3
mov ecx, dword [esi]
mov edx, dword [esi + 0x20]
push ecx
push 0
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.10055080
add esp, 0x10
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
test eax, 0x20000000
je 0x1007d1e9
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push edi
push eax
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.10078df0
add esp, 0x18
jmp 0x1007d27a
test eax, 0xf0000
je 0x1007d27a
mov esi, dword [edi + 0x10]
mov edx, dword [ebp + 8]
push esi
push edx
call fcn.1005a410
mov ecx, dword [esp + 0x1c]
mov esi, dword [esi + 0x24]
push ecx
mov ebx, eax
mov eax, dword [edi + 0x20]
push esi
mov esi, dword [esp + 0x2c]
push eax
push 0x27
mov eax, esi
call fcn.1003e450
mov ecx, dword [esi + 4]
mov edi, dword [esi]
add esp, 0x18
test ecx, ecx
je 0x1007d26a
cmp byte [edi + 0x38], 0
jne 0x1007d26a
test eax, eax
jge 0x1007d237
mov eax, dword [esi + 0x1c]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.1003e980
mov edi, dword [esp + 0x18]
mov dword [esi + 0x10], 0
test ebx, ebx
jne 0x1007d261
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x1007d27a
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xfa
jmp 0x1007d27a
mov ecx, ebx
mov eax, 0xfffffff0
call fcn.1003e980
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebp + 8]
call fcn.10059ee0
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx + 4]
mov edx, dword [eax]
add esp, 4
xor ecx, ecx
test edx, edx
jle 0x1007d2b6
mov esi, dword [esp + 0x20]
mov esi, dword [esi + 0x2c]
add eax, 4
cmp dword [eax], esi
je 0x1007d369
inc ecx
add eax, 4
cmp ecx, edx
jl 0x1007d2a6
xor eax, eax
xor edx, edx
mov ebx, dword [esp + 0x10]
not eax
and dword [esp + 0x30], eax
not edx
and dword [esp + 0x34], edx
add edi, 0x58
sub dword [esp + 0x40], 1
mov dword [esp + 0x18], edi
jne 0x1007cfd3
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x10], eax
cmp byte [ecx + 0x38], 0
jne 0x1007cf4a
or ebx, 0xffffffff
xor esi, esi
cmp dword [esp + 0xc], esi
mov dword [esp + 0x34], ebx
jle 0x1007d35e
mov edi, dword [esp + 0x10]
add edi, 0x64
lea ebx, [ebx]
movzx eax, byte [edi + 8]
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [edi - 0x2c]
push ecx
push edx
call fcn.1007b030
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x24]
add esp, 0x14
push eax
push ebx
push ecx
push esi
push edx
call fcn.1007b310
mov ecx, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [edi]
inc esi
add esp, 0x14
add edi, 0x58
cmp esi, dword [esp + 0xc]
mov dword [esp + 0x34], edx
mov dword [ecx + 0x14], eax
jl 0x1007d310
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
xor edx, edx
call fcn.1012a990
jmp 0x1007d2ba