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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0xa2
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0x1c], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x809a4d
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0x18]
and edx, 6
je 0x8099f9
mov dword [ebp + 0xc], 0
jmp 0x809a4d
mov dword [ebp - 0x1c], 0
jmp 0x809a0b
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx + 0x14]
jge 0x809a4d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx]
push ecx
call fcn.00844fc0
add esp, 8
test eax, eax
jne 0x809a4b
mov edx, dword [ebp - 0x1c]
shl edx, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + edx + 0xc]
mov dword [ebp - 0x34], edx
jmp 0x809a4d
jmp 0x809a02
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x809ce9
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x40]
add edx, 8
mov dword [ebp - 0x14], edx
jmp 0x809a84
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x48
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edx]
jge 0x809ca1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0
je 0x809b49
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 8]
and eax, 0x800
je 0x809b49
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 0
jmp 0x809ae0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
cmp eax, dword [edx]
jge 0x809b38
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
imul ecx, dword [ebp - 8], 0x18
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + ecx + 0xc]
push eax
call fcn.0080a470
add esp, 0x10
test eax, eax
je 0x809b36
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], 2
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x1c]
mov cx, word [ebp - 8]
mov word [eax + 0x20], cx
mov dword [ebp - 0x54], 1
jmp 0x809ad7
cmp dword [ebp - 0x54], 0
jne 0x809b44
cmp dword [ebp + 0x10], 0
jne 0x809b49
jmp 0x809a72
cmp dword [ebp + 0xc], 0
je 0x809b5f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
cmp eax, dword [ebp - 0x34]
je 0x809b5f
jmp 0x809a72
cmp dword [ebp + 0x10], 0
je 0x809bcd
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0xc], 0
je 0x809b79
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x58], eax
jmp 0x809b81
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.00844fc0
add esp, 8
test eax, eax
je 0x809ba0
jmp 0x809a72
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xc8]
cmp ecx, 2
jl 0x809bcd
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0xc], 0
je 0x809bcd
mov eax, dword [ebp + 0x1c]
add eax, 0x2c
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.007fe640
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x78], 0
jne 0x809be8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
jmp 0x809c0c
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x28]
add edx, 0x10
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x2a]
cmp dword [ebp - 8], ecx
jge 0x809c9c
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push ecx
call fcn.00844fc0
add esp, 8
test eax, eax
jne 0x809c97
cmp dword [ebp - 0x10], 1
jne 0x809c5f
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x24]
and eax, 4
je 0x809c46
jmp 0x809bfa
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x34]
push eax
call fcn.0080a580
add esp, 8
test eax, eax
je 0x809c5f
jmp 0x809bfa
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x28]
cmp dword [ebp - 8], ecx
jne 0x809c83
mov dword [ebp - 0x5c], 0xffffffff
jmp 0x809c8a
movsx edx, word [ebp - 8]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp + 0x1c]
mov cx, word [ebp - 0x5c]
mov word [eax + 0x20], cx
jmp 0x809c9c
jmp 0x809bfa
jmp 0x809a72
cmp dword [ebp - 0x18], 0
je 0x809ce9
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + 0x24]
and eax, 8
je 0x809cdd
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 4]
or edx, 0x100000
mov eax, dword [ebp + 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x34], eax
cmp dword [ebp + 0xc], 0
jne 0x809f8e
cmp dword [ebp + 0x10], 0
je 0x809f8e
cmp dword [ebp - 0x20], 0
jne 0x809f8e
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x78], 0
je 0x809d82
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x90]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x7c
je 0x809d54
mov ecx, dword [ebp + 0x10]
push ecx
push 0x24a868
call fcn.00844fc0
add esp, 8
test eax, eax
jne 0x809d54
mov edx, dword [ebp + 0x1c]
mov dword [edx + 0x1c], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 4], ecx
jmp 0x809d82
cmp dword [ebp - 0x60], 0x7b
je 0x809d82
mov edx, dword [ebp + 0x10]
push edx
push 0x24a864
call fcn.00844fc0
add esp, 8
test eax, eax
jne 0x809d82
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x18]
and ecx, 0x200
je 0x809dd3
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 8]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x809dd3
mov ecx, dword [ebp + 0x10]
push ecx
push 0x24a858
call fcn.00844fc0
add esp, 8
test eax, eax
jne 0x809dd3
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x14]
mov ecx, 0x48
imul edx, ecx, 0
mov eax, dword [eax + edx + 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x1c], 2
cmp dword [ebp - 4], 0
je 0x809f8e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
jmp 0x809e13
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x28]
add edx, 0x10
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x2a]
cmp dword [ebp - 0xc], ecx
jge 0x809e4c
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push ecx
call fcn.00844fc0
add esp, 8
test eax, eax
jne 0x809e4a
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x28]
cmp dword [ebp - 0xc], eax
jne 0x809e48
mov dword [ebp - 0xc], 0xffffffff
jmp 0x809e4c
jmp 0x809e01
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x2a]
cmp dword [ebp - 0xc], edx
jl 0x809e7a
mov eax, dword [ebp + 0x14]
push eax
call fcn.00804ab0
add esp, 4
test eax, eax
je 0x809e7a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x40
jne 0x809e7a
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x2a]
cmp dword [ebp - 0xc], ecx
jge 0x809f8e
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x1c], 2
jne 0x809ef7
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0xc8]
cmp edx, 2
jl 0x809ec8
mov eax, dword [ebp + 0x1c]
mov cx, word [ebp - 0xc]
mov word [eax + 0x20], cx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov dword [ebp - 0x3c], 0xa2
jmp 0x809ef2
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x18]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x1c], eax
mov dword [ebp - 0x3c], 0xab
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 4]
or eax, 0x400000
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 4], eax
jmp 0x809f8e
cmp dword [ebp - 0xc], 0
jge 0x809f06
mov edx, dword [ebp + 0x1c]
mov byte [edx + 1], 0x44
jmp 0x809f73
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x1c], 0
jne 0x809f42
cmp dword [ebp - 0xc], 0x20
jl 0x809f1e
mov dword [ebp - 0x68], 0xffffffff
jmp 0x809f2b
mov edx, 1
mov ecx, dword [ebp - 0xc]
shl edx, cl
mov dword [ebp - 0x68], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x88]
or ecx, dword [ebp - 0x68]
mov edx, dword [ebp + 8]
mov dword [edx + 0x88], ecx
jmp 0x809f73
cmp dword [ebp - 0xc], 0x20
jl 0x809f51
mov dword [ebp - 0x6c], 0xffffffff
jmp 0x809f5e
mov eax, 1
mov ecx, dword [ebp - 0xc]
shl eax, cl
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x8c]
or edx, dword [ebp - 0x6c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x8c], edx
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp + 0x1c]
mov cx, word [ebp - 0xc]
mov word [eax + 0x20], cx
mov dword [ebp - 0x3c], 0x4d
cmp dword [ebp - 0x10], 0
jne 0x809fe1
cmp dword [ebp - 0x20], 1
jne 0x809fe1
cmp dword [ebp - 0x18], 0
je 0x809fe1
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
and eax, 0x20
jne 0x809fe1
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00804ab0
add esp, 4
test eax, eax
je 0x809fe1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x24]
and ecx, 0x40
jne 0x809fe1
mov dword [ebp - 0x10], 1
or edx, 0xffffffff
mov eax, dword [ebp + 0x1c]
mov word [eax + 0x20], dx
mov ecx, dword [ebp + 0x1c]
mov byte [ecx + 1], 0x44
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
and eax, 0x80
je 0x80a162
cmp dword [ebp - 0x10], 0
jne 0x80a162
cmp dword [ebp + 0x10], 0
jne 0x80a162
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], 0
jmp 0x80a021
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx]
jge 0x80a162
imul eax, dword [ebp - 8], 0x18
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax + 8]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x80a15d
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00844fc0
add esp, 8
test eax, eax
jne 0x80a15d
imul edx, dword [ebp - 8], 0x18
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + edx + 4]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
and eax, 1
jne 0x80a0a2
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
and edx, 0x10
je 0x80a0a2
mov eax, dword [ebp - 0x38]
push eax
push 0x24a838
mov ecx, dword [ebp + 8]
push ecx
call fcn.00845200
add esp, 0xc
mov eax, 2
jmp 0x80a399
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
and eax, 0x4000
jne 0x80a0dc
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
and edx, 0x8000
je 0x80a0dc
mov eax, dword [ebp - 0x38]
push eax
push 0x24a810
mov ecx, dword [ebp + 8]
push ecx
call fcn.00845200
add esp, 0xc
mov eax, 2
jmp 0x80a399
mov edx, dword [ebp - 0x44]
push edx
call fcn.00807560
add esp, 4
cmp eax, 1
je 0x80a108
push 0x24a7fc
mov eax, dword [ebp + 8]
push eax
call fcn.00845200
add esp, 8
mov eax, 2
jmp 0x80a399
mov ecx, dword [ebp - 0x48]
push ecx
push 0x24d390
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0080a5e0
add esp, 0x18
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xc8]
cmp ecx, 2
jl 0x80a158
mov edx, dword [ebp + 0x1c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.007fe640
add esp, 0xc
jmp 0x80a338
jmp 0x80a018
cmp dword [ebp - 0x10], 0
je 0x80a16a
jmp 0x80a186
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0xc]
mov dword [ebp + 0x18], edx
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp + 0x18], 0
jne 0x809a4d
cmp dword [ebp - 0x10], 0
jne 0x80a1f8
cmp dword [ebp + 0x10], 0
jne 0x80a1f8
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 4]
and edx, 0x40
je 0x80a1de
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0080a3a0
add esp, 8
test eax, eax
je 0x80a1de
mov edx, dword [ebp + 0x14]
push edx
push 0x24a7d8
push 0x1c
call fcn.00846670
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov byte [eax], 0x71
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x2c], 0
mov eax, 1
jmp 0x80a399
mov edx, dword [ebp + 0x1c]
push edx
call fcn.008052e0
add esp, 4
test eax, eax
je 0x80a1f8
mov eax, 1
jmp 0x80a399
cmp dword [ebp - 0x10], 1
je 0x80a29b
cmp dword [ebp - 0x10], 0
jne 0x80a211
mov dword [ebp - 0x70], 0x24a7c8
jmp 0x80a218
mov dword [ebp - 0x70], 0x24a7b0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x4c], eax
cmp dword [ebp + 0xc], 0
je 0x80a247
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
push 0x24a7a0
mov edx, dword [ebp + 8]
push edx
call fcn.00845200
add esp, 0x18
jmp 0x80a285
cmp dword [ebp + 0x10], 0
je 0x80a26c
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0x24a794
mov eax, dword [ebp + 8]
push eax
call fcn.00845200
add esp, 0x14
jmp 0x80a285
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0x24a78c
mov eax, dword [ebp + 8]
push eax
call fcn.00845200
add esp, 0x10
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x11], 1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x14]
add eax, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp + 0x1c]
movsx eax, word [edx + 0x20]
test eax, eax
jl 0x80a2e4
cmp dword [ebp - 0x18], 0
je 0x80a2e4
mov ecx, dword [ebp + 0x1c]
movsx edx, word [ecx + 0x20]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0x40
jl 0x80a2c3
mov dword [ebp - 0x50], 0x3f
mov eax, 1
xor edx, edx
mov ecx, dword [ebp - 0x50]
call fcn.007752b0
mov ecx, dword [ebp - 0x18]
or eax, dword [ecx + 0x38]
or edx, dword [ecx + 0x3c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.008066d0
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [edx + 0xc], 0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.008066d0
add esp, 8
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 0x1c]
mov dl, byte [ebp - 0x3c]
mov byte [ecx], dl
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
or ecx, 0x800000
mov edx, dword [ebp + 0x1c]
mov dword [edx + 4], ecx
cmp dword [ebp - 0x10], 1
jne 0x80a394
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
and ecx, 0x400000
jne 0x80a367
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.007fa340
add esp, 0x10
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x10]
add edx, 1
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 0x18]
jne 0x80a380
jmp 0x80a38b
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x80a367
mov eax, 1
jmp 0x80a399
mov eax, 2
mov esp, ebp
pop ebp
ret