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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor edx, edx
push edi
mov edi, dword [ebx + 8]
cmp edi, edx
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
je 0x1007e995
mov esi, dword [ebp + 0xc]
cmp esi, edx
lea ecx, [edx + 0x65]
je 0x1007dea5
movzx ecx, byte [esi]
mov dword [esp + 0xc], ecx
add ecx, 0xffffffed
cmp ecx, 0x8c
ja case.0x1007debf.21
movzx ecx, byte [ecx + 0x1007ec88]
jmp dword [ecx*4 + 0x1007ec20]
movsx ecx, word [esi + 0x22]
mov eax, dword [esi + 0x28]
cmp byte [eax], 0
lea edx, [ecx + ecx*2]
mov ecx, dword [eax + 0x1c]
lea ecx, [ecx + edx*8]
jne 0x1007deeb
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x20], edx
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [eax + 1], 0
je 0x1007df14
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0xc]
push edx
mov edx, dword [eax + 8]
push ecx
push edx
push 0x2e
mov esi, edi
call fcn.10030400
mov eax, dword [esp + 0x30]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
mov eax, dword [esi + 0x1c]
cmp eax, edx
jge 0x1007df38
mov ecx, dword [ebx + 0x5c]
cmp ecx, edx
jle 0x1007df35
movsx eax, word [esi + 0x20]
add eax, ecx
mov dword [esp + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x60]
movzx ecx, byte [esi + 0x26]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
push eax
movsx eax, word [esi + 0x20]
push eax
push ecx
mov eax, ebx
call fcn.10058ae0
add esp, 0x14
mov dword [esp + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
push edx
xor edx, edx
mov eax, esi
mov ecx, ebx
call fcn.1003ed20
mov eax, dword [esp + 0x24]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push eax
mov ecx, esi
mov eax, dword [ecx + 8]
push 0
call fcn.1003a360
mov eax, dword [esp + 0x28]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
push 0
mov edx, esi
mov eax, dword [edx + 8]
push eax
push 0
push ecx
push 0
push 0x61
mov esi, edi
call fcn.10035e40
mov eax, dword [esp + 0x38]
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0x1c
mov esi, edi
call fcn.10035eb0
mov eax, dword [esp + 0x2c]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [eax + 8]
add ecx, 2
call fcn.10016110
mov ebx, eax
mov esi, edi
mov eax, dword [esi]
sub ebx, 1
push ebx
push eax
mov edi, ecx
call fcn.1002b2f0
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push eax
mov eax, ebx
cdq
push 0
sub eax, edx
push ecx
sar eax, 1
push eax
push 0x1e
call fcn.10035e40
mov eax, dword [esp + 0x40]
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, esi
movsx ecx, word [eax + 0x20]
push edx
push ecx
push 0x1f
mov esi, edi
call fcn.10035eb0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
add esp, 0xc
cmp byte [eax + 1], 0
je 0x1007e223
mov eax, dword [ebx + 0x1d8]
mov ecx, edx
movsx edx, word [ecx + 0x20]
mov ebx, dword [eax + edx*4 - 4]
mov eax, esi
mov ecx, dword [eax + 4]
test ecx, ecx
mov edi, dword [eax]
je 0x1007e0b2
cmp byte [edi + 0x40], 0
jne 0x1007e0b2
mov edx, eax
mov eax, dword [edx + 0x20]
sub eax, 1
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.10030230
xor eax, eax
cmp ebx, eax
mov dword [esi + 0x10], eax
jne 0x1007e0a0
mov dword [esi + 0x10], eax
mov byte [esi + 1], al
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xfe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
mov eax, 0xfffffffe
call fcn.10030230
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x20], ecx
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [esi + 0xc]
push edx
push eax
push ebx
call fcn.1007de60
add esp, 0xc
mov dword [esp + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, esi
mov eax, dword [edx + 0xc]
push ecx
push eax
push ebx
call fcn.1007de60
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov esi, eax
add esp, 0xc
xor edi, edi
mov dword [esp + 0x20], esi
call fcn.1001a590
movsx edi, al
add edi, 0x2e
cmp esi, dword [ebp + 0x10]
je 0x1007e142
mov edx, dword [ebp + 0x10]
push edx
mov eax, esi
mov esi, dword [esp + 0x18]
push eax
push 0x22
call fcn.10035eb0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
push edx
push edi
call fcn.10035f10
mov eax, dword [esp + 0x28]
push eax
mov eax, 1
mov esi, ebx
call fcn.1001a9b0
mov eax, dword [esp + 0x2c]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.1003ebe0
lea edx, [esp + 0x14]
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x10]
push edx
mov ecx, ebx
call fcn.1003ebe0
mov edx, dword [esp + 0x10]
add esp, 4
push 0x10
mov ecx, dword [ebp + 0x10]
push ecx
push eax
mov eax, dword [esi + 0xc]
push edi
push edx
push eax
mov eax, dword [esi + 0x10]
mov edi, ebx
call fcn.10052fc0
add esp, 0x18
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1007e1ef
mov dl, byte [ebx + 0x13]
cmp dl, 8
jae 0x1007e1ef
xor eax, eax
lea ecx, [ebx + 0x74]
lea esp, [esp]
cmp dword [ecx + 0xc], esi
je 0x1007ec07
add eax, 1
add ecx, 0x14
cmp eax, 0xa
jl 0x1007e1d0
movzx ecx, dl
mov dword [ebx + ecx*4 + 0x18], esi
add byte [ebx + 0x13], 1
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1007e223
mov dl, byte [ebx + 0x13]
cmp dl, 8
jae 0x1007e223
xor eax, eax
lea ecx, [ebx + 0x74]
cmp dword [ecx + 0xc], esi
je 0x1007ec10
add eax, 1
add ecx, 0x14
cmp eax, 0xa
jl 0x1007e204
movzx edx, dl
mov dword [ebx + edx*4 + 0x18], esi
add byte [ebx + 0x13], 1
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.1003ebe0
lea edx, [esp + 0x14]
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x10]
push edx
mov ecx, ebx
call fcn.1003ebe0
add esp, 4
xor edx, edx
cmp dword [esp + 0xc], 0x49
push 0x90
sete dl
add edx, 0x4e
jmp 0x1007e19c
lea ecx, [esp + 0x18]
mov edx, esi
mov eax, dword [edx + 0xc]
push ecx
mov ecx, ebx
call fcn.1003ebe0
mov ecx, dword [ebp + 0xc]
mov esi, eax
lea eax, [esp + 0x14]
add esp, 4
push eax
mov eax, dword [ecx + 0x10]
mov ecx, ebx
call fcn.1003ebe0
mov edx, dword [ebp + 0x10]
add esp, 4
push edx
push esi
push eax
mov eax, dword [esp + 0x18]
push eax
mov esi, edi
call fcn.10030400
add esp, 0x10
jmp 0x1007e1b4
mov eax, dword [esi + 0xc]
mov cl, byte [eax]
cmp cl, 0x84
jne 0x1007e2d9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, 1
mov ecx, ebx
call fcn.1003ed20
mov edx, dword [ebp + 0x10]
add esp, 4
mov dword [esp + 0x20], edx
jmp 0x1007e1b4
cmp cl, 0x85
jne 0x1007e2fb
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 8]
push edx
push 1
call fcn.1003a360
mov edx, dword [ebp + 0x10]
add esp, 8
mov dword [esp + 0x20], edx
jmp 0x1007e1b4
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
mov ecx, ebx
mov byte [esp + 0x3c], 0x84
mov dword [esp + 0x40], 0x4400
mov dword [esp + 0x44], edx
call fcn.1003ebe0
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
add esp, 4
mov esi, eax
mov eax, dword [edx + 0xc]
push ecx
mov ecx, ebx
call fcn.1003ebe0
mov ecx, dword [ebp + 0x10]
add esp, 4
push ecx
push esi
push eax
push 0x5a
mov esi, edi
call fcn.10030400
mov edx, dword [ebp + 0x10]
add esp, 0x10
mov dword [esp + 0x20], edx
jmp 0x1007e1b4
lea eax, [esp + 0x18]
mov ecx, esi
push eax
mov eax, dword [ecx + 0xc]
mov ecx, ebx
call fcn.1003ebe0
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
add esp, 4
push ecx
push eax
push edx
mov esi, edi
mov dword [esp + 0x2c], ecx
call fcn.10035eb0
add esp, 0xc
jmp 0x1007e1b4
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0x19
mov esi, edi
call fcn.10035eb0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x24]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.1003ebe0
add esp, 4
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.10035f10
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push ecx
push 0x25
mov dword [esp + 0x30], eax
call fcn.10035eb0
mov eax, dword [esp + 0x30]
add esp, 0x14
mov edx, edi
call fcn.1001b350
jmp 0x1007e1b4
mov eax, dword [esi + 0x28]
cmp eax, edx
jne 0x1007e402
mov edx, esi
mov eax, dword [edx + 8]
push eax
push str.misuse_of_aggregate:__s__
mov edi, ebx
call fcn.10030a70
mov eax, dword [esp + 0x28]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx ecx, word [esi + 0x22]
mov edx, dword [eax + 0x28]
shl ecx, 4
mov eax, dword [ecx + edx + 8]
mov dword [esp + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x4000
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx + 0xc]
mov cl, byte [eax + 0x4d]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x28], cl
mov dword [esp + 0x2c], edx
je 0x1007e43f
mov dword [esp + 0x10], edx
jmp 0x1007e44c
mov eax, dword [esi + 0x14]
cmp eax, edx
mov dword [esp + 0x10], eax
je 0x1007e44c
mov edx, dword [eax]
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
call fcn.10016110
mov edx, dword [esp + 0x28]
push 0
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
push ecx
push eax
call fcn.10029700
add esp, 0x18
test eax, eax
mov dword [esp + 0x18], eax
jne 0x1007e4a7
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
push ecx
push edx
push str.unknown_function:__.s__
mov edi, ebx
call fcn.10030a70
mov eax, dword [esp + 0x2c]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [eax + 2]
test eax, 0x200
je 0x1007e567
mov eax, edi
call fcn.100303a0
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax]
push ecx
push ebx
call fcn.1007f6d0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 1
jle 0x1007e54d
add eax, 0xffffffff
mov dword [esp + 0x1c], 0x18
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0x10]
push edx
push eax
push 0x4d
mov esi, edi
call fcn.10035eb0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov eax, 1
mov esi, ebx
call fcn.1001a9b0
add dword [ebx + 0x64], 1
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x20]
add esp, 4
push edx
mov edx, dword [esi + ecx]
push edx
push ebx
call fcn.1007f6d0
add esp, 0xc
mov eax, ebx
call fcn.1001a960
add esi, 0x18
sub dword [esp + 0x24], 1
mov dword [esp + 0x1c], esi
jne 0x1007e4f0
mov eax, dword [esp + 0x28]
push eax
mov ecx, edi
call fcn.100138f0
mov eax, dword [esp + 0x24]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0x400
je 0x1007e590
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax]
push ecx
push ebx
call fcn.1007f6d0
mov eax, dword [esp + 0x2c]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0xc], 0
jle 0x1007e629
mov dword [esp + 0x28], 0
lea esp, [esp]
cmp dword [esp + 0xc], 0x20
jge 0x1007e5e5
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax + ecx]
push edx
call fcn.100269e0
add esp, 4
test eax, eax
je 0x1007e5e1
mov ecx, dword [esp + 0xc]
mov eax, 1
shl eax, cl
or dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test byte [ecx + 2], 0x20
je 0x1007e615
cmp dword [esp + 0x2c], 0
jne 0x1007e615
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x28]
mov ecx, dword [eax + ecx]
push ebx
call fcn.1004e5b0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0xc]
add dword [esp + 0x28], 0x18
add ecx, 1
cmp ecx, eax
mov dword [esp + 0xc], ecx
jl 0x1007e5b0
cmp dword [esp + 0x10], 0
je 0x1007e6a5
cmp dword [esp + 0x1c], 0
je 0x1007e648
mov ecx, dword [ebx + 0x48]
lea edx, [ecx + 1]
add ecx, eax
mov dword [esp + 0xc], edx
mov dword [ebx + 0x48], ecx
jmp 0x1007e658
mov esi, eax
mov ecx, ebx
call fcn.10012830
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x18]
test byte [edx + 2], 0xc0
je 0x1007e680
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov cl, byte [eax]
cmp cl, 0x9a
je 0x1007e677
cmp cl, 0x9c
jne 0x1007e680
mov dl, byte [edx + 2]
and dl, 0xc0
mov byte [eax + 0x26], dl
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add dword [ebx + 0x64], 1
push eax
push ebx
mov cl, 3
call fcn.1003ea10
add esp, 8
mov eax, ebx
call fcn.1001a960
mov eax, dword [esp + 0x14]
jmp 0x1007e6ad
mov dword [esp + 0xc], 0
cmp eax, 2
jl 0x1007e6cf
test byte [esi + 4], 0x80
je 0x1007e6cf
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [edx + 0x18]
push ecx
jmp 0x1007e6e7
test eax, eax
jle 0x1007e6f3
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
mov eax, dword [ecx]
call fcn.1002bd00
mov dword [esp + 0x24], eax
add esp, 0xc
mov ecx, dword [esp + 0x18]
test byte [ecx + 2], 0x20
je 0x1007e728
cmp dword [esp + 0x2c], 0
jne 0x1007e70f
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
push 0xfffffffffffffffc
push ecx
push 0
push 0
push 0
push 0x24
mov esi, edi
call fcn.10035e40
add esp, 0x18
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x1c]
push 0xfffffffffffffffb
push edx
push eax
push ecx
push ebx
push 1
mov esi, edi
call fcn.10035e40
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x2c]
add esp, 0x18
test eax, eax
je 0x1007e75e
mov edi, dword [edi + 0x20]
lea edx, [edi + edi*4]
mov byte [eax + edx*4 - 0x11], cl
test ecx, ecx
je 0x1007e223
test ebx, ebx
jne 0x1007e223
mov ebx, dword [esp + 0xc]
mov eax, dword [ebp + 8]
mov edi, ecx
call fcn.1001fe90
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
push ebx
call fcn.10073fa0
add esp, 0x10
mov dword [esp + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
call fcn.100303a0
mov dword [esp + 0x1c], eax
mov eax, edi
call fcn.100303a0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0x1c
mov esi, edi
call fcn.10035eb0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push ecx
push edx
push ebx
call fcn.10077c10
mov ebx, dword [ebp + 0x10]
add esp, 0xc
push ebx
push 1
push 0x19
call fcn.10035eb0
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
mov ecx, edi
call fcn.100138f0
add esp, 4
push 0
push ebx
push 0x25
call fcn.10035eb0
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.100138f0
mov eax, dword [esp + 0x24]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x14]
mov esi, dword [edx + 4]
mov edi, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x20], eax
call fcn.1003ebe0
lea edx, [esp + 0x14]
add esp, 4
mov dword [esp + 0xc], eax
push edx
mov eax, edi
mov ecx, ebx
call fcn.1003ebe0
mov edx, eax
add esp, 4
mov eax, ebx
call fcn.100128a0
mov dword [esp + 0x24], eax
mov eax, ebx
call fcn.100128a0
mov ecx, dword [esp + 0xc]
push 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
push eax
push edx
mov edx, dword [esp + 0x28]
push ecx
push 0x53
mov eax, edi
push edx
mov edi, ebx
call fcn.10052fc0
mov edi, dword [esi + 0x18]
mov esi, dword [esp + 0x28]
mov edx, ebx
call fcn.10012860
lea eax, [esp + 0x28]
push eax
mov eax, edi
mov ecx, ebx
call fcn.1003ebe0
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
add esp, 0x1c
push 0x10
push esi
push eax
push ecx
push 0x51
mov eax, edi
push edx
mov edi, ebx
call fcn.10052fc0
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x3c]
push eax
push esi
mov esi, dword [esp + 0x34]
push edi
push 0x48
call fcn.10030400
add esp, 0x28
mov esi, edi
mov edx, ebx
call fcn.10012860
mov esi, dword [esp + 0x28]
call fcn.10012860
jmp 0x1007e1b4
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0xc]
push ecx
push edx
push ebx
call fcn.1007de60
add esp, 0xc
mov dword [esp + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov eax, esi
mov ebx, dword [eax + 0x2c]
movsx edx, word [ebx + 0x26]
add edx, 1
imul edx, dword [eax + 0x1c]
movsx eax, word [eax + 0x20]
push ecx
lea ecx, [edx + eax + 1]
push ecx
push 0x81
mov esi, edi
call fcn.10035eb0
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0x20]
add esp, 0xc
test ax, ax
jl 0x1007e223
mov ecx, dword [ebx + 4]
movsx eax, ax
lea eax, [eax + eax*2]
cmp byte [ecx + eax*8 + 0x15], 0x65
jne 0x1007e223
mov edx, dword [ebp + 0x10]
push edx
push 0x27
call fcn.10035f10
mov eax, dword [esp + 0x28]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x19c], edx
jne 0x1007e99e
push str.RAISE___may_only_be_used_within_a_trigger_program
mov edi, ebx
call fcn.10030a70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 1], 2
jne 0x1007e9ab
mov ecx, ebx
call fcn.10012320
mov al, byte [esi + 1]
cmp al, 4
push 0
jne 0x1007e9d7
mov eax, esi
mov ecx, dword [eax + 8]
push ecx
push 0
push 4
push 0
push 0x18
mov esi, edi
call fcn.10035e40
mov eax, dword [esp + 0x38]
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, dword [edx + 8]
push 0
push ecx
movsx edi, al
push 0x713
mov eax, ebx
call fcn.100393a0
mov eax, dword [esp + 0x30]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov eax, edi
mov dword [esp + 0x30], edx
call fcn.100303a0
mov esi, dword [esi + 0xc]
test esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], esi
je 0x1007ea78
mov ecx, 0xc
mov eax, esi
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.1003ebe0
mov dl, byte [esp + 0x3c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x6c]
add esp, 4
and dword [esp + 0x3c], 0xffffefff
mov byte [esp + 0x5e], dl
mov byte [esp + 0x38], 0x9f
mov byte [esp + 0x68], 0x4f
mov dword [esp + 0x74], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0xc]
lea ecx, [eax - 1]
test ecx, ecx
jle 0x1007eb6d
mov edx, dword [esp + 0x30]
lea eax, [ecx - 1]
shr eax, 1
add eax, 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
jmp 0x1007eaa0
add dword [ebx + 0x64], 1
cmp dword [esp + 0x24], 0
je 0x1007eab7
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
jmp 0x1007eac1
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
mov eax, edi
call fcn.100303a0
mov ecx, dword [esp + 0x1c]
push 8
push eax
push ecx
push ebx
mov dword [esp + 0x40], eax
call fcn.1007db30
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x18]
push edx
push ecx
push ebx
call fcn.1007f6d0
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
add esp, 0x1c
cmp dword [edx + 0x54], esi
jg 0x1007eb07
push edi
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x1007eb30
mov ecx, dword [edi + 4]
add dword [edi + 0x20], 1
mov edx, dword [esp + 0x10]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x10
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, ebx
call fcn.1001a960
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x30]
js 0x1007eb50
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x1007eb50
mov esi, dword [edi + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [edi + 0x20]
add dword [esp + 0x2c], 0x30
sub eax, 1
sub dword [esp + 0x28], 1
mov dword [ecx + 0x58], eax
jne 0x1007eaa0
mov eax, dword [esp + 0xc]
test al, 1
je 0x1007eb9a
mov ecx, dword [ebp + 0x10]
add dword [ebx + 0x64], 1
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx*8 - 0x18]
push edx
push ebx
call fcn.1007f6d0
add esp, 0xc
mov eax, ebx
call fcn.1001a960
jmp 0x1007ebda
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x1007ebb2
push edi
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x1007ebda
mov edx, dword [edi + 4]
add dword [edi + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov byte [eax], 0x1c
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x10]
js 0x1007ebf3
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x1007ebf3
mov esi, dword [edi + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [edi + 0x20]
sub eax, 1
mov dword [ecx + 0x58], eax
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ecx + 6], 1
jmp 0x1007e1ef
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov byte [ecx + 6], 1
pop ebx
mov esp, ebp
pop ebp
ret