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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov ecx, dword [ebx + 8]
mov edi, edx
mov edx, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], eax
test ecx, ecx
jne 0x489355
xor eax, eax
jmp 0x489f29
test edi, edi
je 0x489ed4
movzx eax, byte [edi]
mov dword [esp + 0x30], eax
cmp eax, 0x56
ja 0x48975d
je case.0x4896ac.82
cmp eax, 0x49
ja 0x489699
je case.0x4896ac.74
cmp eax, 0x3c
ja 0x489507
je 0x4894ab
sub eax, 0x13
je 0x4897c2
sub eax, 1
je 0x48982f
sub eax, 4
je case.0x4898bf.157
sub eax, 0xd
je 0x48942a
sub eax, 0x13
jne case.0x4898bf.134
cmp dword [ebx + 0x1b4], esi
jne 0x4893d4
push str.RAISE___may_only_be_used_within_a_trigger_program
push ebx
call fcn.00467ef4
pop ecx
pop ecx
jmp 0x48934e
mov al, byte [edi + 1]
cmp al, 2
jne 0x4893f3
mov eax, dword [ebx + 0x1b0]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x18], 1
mov al, byte [edi + 1]
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 4]
push esi
cmp al, 4
jne 0x48941d
push 4
push esi
push 6
pop edx
call fcn.0047a9c4
add esp, 0xc
mov edx, eax
push esi
push edi
mov ecx, dword [esp + 0x18]
call fcn.0047aef7
pop ecx
pop ecx
jmp 0x489ee2
push edi
movsx edx, al
mov ecx, ebx
call fcn.004906fc
jmp 0x489416
push edx
mov edx, dword [edi + 8]
mov ecx, ebx
call fcn.00489315
pop ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], eax
call fcn.0048de60
mov edi, dword [esp + 0x10]
movsx eax, al
add eax, 0x2c
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 8]
je 0x489472
push esi
push dword [ebp + 8]
mov ecx, edi
push eax
push 0xf
pop edx
call fcn.0047a9c4
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x1c]
mov ecx, edi
push esi
push esi
mov esi, dword [esp + 0x1c]
push esi
call fcn.0047a9c4
add esp, 0xc
mov edx, esi
mov ecx, ebx
push 1
call fcn.004890e6
pop ecx
jmp 0x489ee6
push edx
mov edx, dword [edi + 8]
mov ecx, ebx
call fcn.00489315
pop ecx
mov esi, eax
jmp 0x489ee6
mov eax, dword [edi + 0x28]
mov dword [esp + 0x1c], eax
push esi
push edx
mov ecx, dword [eax + 8]
movsx eax, word [edi + 0x1c]
inc ecx
imul ecx, dword [edi + 0x18]
inc eax
add eax, ecx
mov ecx, dword [esp + 0x18]
push eax
push 0x74
pop edx
call fcn.0047a9c4
movzx eax, word [edi + 0x1c]
add esp, 0xc
test ax, ax
js 0x489ee2
cwde
imul ecx, eax, 0x18
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
cmp byte [ecx + eax + 0x16], 0x65
jne 0x489ee2
push esi
push esi
push dword [ebp + 8]
push 0x16
pop edx
mov ecx, dword [esp + 0x1c]
jmp 0x489eda
sub eax, 0x44
je case.0x4896ac.82
sub eax, 1
je case.0x4896ac.82
sub eax, 1
je case.0x4898bf.146
sub eax, 1
je 0x4895ac
sub eax, 1
jne case.0x4898bf.134
call fcn.0047aae8
mov ecx, dword [esp + 0x10]
mov esi, eax
call fcn.0047aae8
mov ecx, dword [esp + 0x10]
mov edi, eax
xor eax, eax
push eax
push dword [ebp + 8]
push eax
push 0xa
pop edx
call fcn.0047a9c4
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, ebx
push edi
push esi
call fcn.00488c93
mov ecx, dword [esp + 0x18]
push 0
push dword [ebp + 8]
push 1
push 7
pop edx
call fcn.0047a9c4
add esp, 0x14
mov edx, esi
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.0047ab24
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push 0x14
pop edx
call fcn.0047a9c4
add esp, 0xc
mov edx, edi
mov ecx, esi
call fcn.0047ab24
jmp 0x489ee2
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 8]
mov edx, ecx
mov dword [esp + 0x2c], ecx
mov ecx, ebx
mov edi, dword [eax + 8]
lea eax, [esp + 0x34]
push eax
mov esi, dword [edi]
call fcn.00489f8f
mov dword [esp + 0x20], eax
mov edx, esi
pop ecx
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call fcn.00489f8f
pop ecx
mov ecx, ebx
mov edx, eax
call fcn.0048ad3e
mov dword [esp + 0x28], eax
call fcn.0048ad3e
push 0x10
push dword [esp + 0x2c]
mov dword [esp + 0x20], eax
push edx
push dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
push 0x50
push esi
call fcn.00487469
mov esi, dword [esp + 0x50]
add esp, 0x18
mov edi, dword [edi + 0x14]
test esi, esi
je 0x489643
mov dl, byte [ebx + 0x13]
cmp dl, 8
jae 0x489643
xor ecx, ecx
lea eax, [ebx + 0x64]
cmp dword [eax + 0x10], esi
je 0x48963f
inc ecx
add eax, 0x18
cmp ecx, 0xa
jl 0x489625
movzx eax, dl
mov dword [ebx + eax*4 + 0x1c], esi
inc byte [ebx + 0x13]
jmp 0x489643
mov byte [eax + 8], 1
lea eax, [esp + 0x38]
mov edx, edi
push eax
mov ecx, ebx
call fcn.00489f8f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
pop ecx
push 0x10
push esi
push eax
push dword [esp + 0x28]
mov ecx, ebx
push 0x4e
push edi
call fcn.00487469
push dword [ebp + 8]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
push esi
push edi
push 0x45
pop edx
call fcn.0047a9c4
add esp, 0x24
mov edx, edi
mov ecx, ebx
call fcn.0048ad5a
mov edx, esi
call fcn.0048ad5a
jmp 0x489ee2
add eax, 0xffffffb6
cmp eax, 0xb
ja case.0x4898bf.134
movzx eax, byte [eax + 0x489f41]
jmp dword [eax*4 + 0x489f31]
mov edx, dword [edi + 8]
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.00489f8f
mov edx, dword [edi + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call fcn.00489f8f
pop ecx
push 0x10
push dword [ebp + 8]
push eax
push esi
push dword [esp + 0x40]
push dword [edi + 0xc]
mov edx, dword [edi + 8]
mov ecx, ebx
call fcn.00487469
add esp, 0x18
jmp 0x489ee2
push esi
push edx
push 1
push 7
pop edx
call fcn.0047a9c4
mov edx, dword [edi + 8]
lea eax, [esp + 0x40]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00489f8f
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
pop ecx
push esi
push esi
push eax
mov ecx, edi
call fcn.0047a9c4
add esp, 0xc
mov dword [esp + 0x1c], eax
mov ecx, edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push 0x14
pop edx
call fcn.0047a9c4
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
js 0x489ee2
push dword [edi + 0x1c]
mov edx, eax
mov ecx, edi
call fcn.0047ad2a
jmp 0x489417
cmp eax, 0x83
ja 0x4898aa
je 0x48986b
cmp eax, 0x5d
ja 0x4897ef
je 0x4897c2
sub eax, 0x57
je case.0x4896ac.82
sub eax, 1
je case.0x4896ac.82
sub eax, 1
je case.0x4896ac.82
sub eax, 1
je case.0x4896ac.82
sub eax, 1
jne case.0x4898bf.134
mov edx, dword [edi + 8]
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.00489f8f
mov edx, dword [edi + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call fcn.00489f8f
mov edx, dword [esp + 0x34]
pop ecx
push dword [ebp + 8]
push esi
push eax
jmp 0x4894fe
mov edx, dword [edi + 8]
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.00489f8f
mov edx, dword [esp + 0x34]
pop ecx
push esi
push dword [ebp + 8]
push eax
mov ecx, dword [esp + 0x1c]
call fcn.0047a9c4
add esp, 0xc
mov esi, dword [ebp + 8]
jmp 0x489ee6
sub eax, 0x5e
je 0x489840
sub eax, 4
je 0x489ed4
sub eax, 0x12
je 0x48982f
sub eax, 0xd
je 0x48981f
sub eax, 1
jne case.0x4898bf.134
push edx
mov edx, dword [edi + 4]
push esi
call fcn.00488ec7
jmp 0x489416
push edx
push esi
mov edx, edi
mov ecx, ebx
call fcn.00488f4c
jmp 0x489416
push esi
push esi
mov edx, edi
mov ecx, ebx
call fcn.004888b2
pop ecx
jmp 0x4894a3
mov esi, dword [edi + 4]
xor edi, edi
push edi
push edx
push edi
push 0x5e
pop edx
call fcn.0047a9c4
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, eax
push edi
push esi
call fcn.0047aef7
pop ecx
pop ecx
mov esi, dword [esp + 0x14]
jmp 0x489ee8
mov ecx, dword [edi + 4]
add ecx, 2
call fcn.00467e72
mov edx, ecx
lea esi, [eax - 1]
mov eax, dword [esp + 0x10]
push esi
mov ecx, dword [eax]
call fcn.00468a5c
pop ecx
mov ecx, dword [esp + 0x10]
xor edi, edi
push 0xffffffffffffffff
push eax
push edi
push dword [ebp + 8]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0xb
pop edx
call fcn.0047aa4a
add esp, 0x14
jmp 0x489862
add eax, 0xffffff7c
cmp eax, 0x19
ja case.0x4898bf.134
movzx eax, byte [eax + 0x489f75]
jmp dword [eax*4 + 0x489f4d]
movsx eax, word [edi + 0x1e]
mov esi, dword [edi + 0x24]
imul eax, eax, 0x18
add eax, dword [esi + 0x14]
cmp byte [esi], 0
jne 0x4898e0
mov esi, dword [eax + 0x10]
jmp 0x489ee6
cmp byte [esi + 1], 0
je case.0x4898bf.152
push edx
push dword [eax + 0xc]
push dword [esi + 8]
push 0x1d
jmp 0x489ed9
cmp dword [edi + 0x18], 0
jge 0x489906
movsx esi, word [edi + 0x1c]
add esi, dword [ebx + 0x58]
jmp 0x489ee6
movzx eax, byte [edi + 0x23]
mov ecx, ebx
push eax
movsx eax, word [edi + 0x1c]
push edx
push dword [edi + 0x18]
mov edx, dword [edi + 0x28]
push eax
call fcn.004891d6
add esp, 0x10
jmp 0x4894a4
movsx eax, word [edi + 0x1c]
push esi
push edx
push eax
push 0xc
pop edx
call fcn.0047a9c4
mov eax, dword [edi + 4]
add esp, 0xc
cmp byte [eax + 1], 0
je 0x489ee2
movsx ecx, word [edi + 0x1c]
or edx, 0xffffffff
mov eax, dword [ebx + 0x1ec]
push 0xfffffffffffffffe
push dword [eax + ecx*4 - 4]
jmp 0x48940d
mov esi, dword [edi + 0x18]
jmp 0x489ee6
mov edx, dword [edi + 8]
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.00489f8f
mov edx, dword [edi + 0xc]
mov esi, eax
pop ecx
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call fcn.00489f8f
pop ecx
push 0x90
push dword [ebp + 8]
push eax
xor eax, eax
cmp dword [esp + 0x3c], 0x46
push esi
sete al
add eax, 0x4b
push eax
jmp 0x4896e0
mov eax, dword [edi + 8]
mov cl, byte [eax]
mov byte [esp + 0x27], cl
cmp cl, 0x81
mov ecx, dword [esp + 0x10]
jne 0x4899c4
push edx
push 1
mov edx, eax
mov ecx, ebx
call fcn.00488f4c
jmp 0x4899d6
cmp byte [esp + 0x27], 0x82
jne 0x4899dd
push edx
mov edx, dword [eax + 4]
push 1
call fcn.00488ec7
pop ecx
pop ecx
jmp 0x4897e7
mov ecx, ebx
call fcn.0048ad3e
mov ecx, dword [esp + 0x10]
mov esi, eax
xor eax, eax
mov dword [esp + 0x34], esi
push eax
push esi
push eax
push 7
pop edx
call fcn.0047a9c4
mov edx, dword [edi + 8]
lea eax, [esp + 0x44]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00489f8f
pop ecx
push dword [ebp + 8]
push esi
push eax
push 0x57
pop edx
jmp 0x4897db
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x489a35
push dword [edi + 4]
push str.misuse_of_aggregate:__s__
push ebx
call fcn.00467ef4
jmp 0x489edf
movsx ecx, word [edi + 0x1e]
mov eax, dword [eax + 0x20]
add ecx, ecx
mov esi, dword [eax + ecx*8 + 8]
jmp 0x489ee6
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x3c], esi
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4d]
mov byte [esp + 0x2c], al
mov eax, 0x4000
test word [edi + 2], ax
je 0x489abf
mov dword [esp + 0x20], esi
mov edx, esi
mov ecx, dword [edi + 4]
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ecx
call fcn.00467e72
push esi
push dword [esp + 0x30]
mov dword [esp + 0x20], eax
push edx
mov edx, ecx
mov ecx, dword [esp + 0x50]
push eax
call fcn.00490d2c
mov edx, eax
add esp, 0x10
mov dword [esp + 0x40], edx
test edx, edx
jne 0x489ace
push dword [esp + 0x28]
push dword [esp + 0x1c]
push str.unknown_function:__.s__
push ebx
call fcn.00467ef4
add esp, 0x10
jmp 0x489ee2
mov eax, dword [edi + 0x10]
mov dword [esp + 0x20], eax
test eax, eax
je 0x489a6f
mov edx, dword [eax]
jmp 0x489a71
test byte [edx + 3], 0x20
je 0x489b6d
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.0047aae8
mov edx, dword [esp + 0x20]
mov ecx, ebx
push dword [ebp + 8]
mov dword [esp + 0x30], eax
mov edx, dword [edx + 8]
mov edx, dword [edx]
call fcn.00489fc2
mov eax, dword [esp + 0x34]
pop ecx
cmp eax, 1
jle 0x489b62
dec eax
mov dword [esp + 0x18], 0x14
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x30]
mov ecx, edi
push dword [ebp + 8]
push 0x4a
pop edx
call fcn.0047a9c4
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, ebx
push 1
call fcn.004890e6
mov eax, dword [esp + 0x24]
inc dword [ebx + 0x5c]
pop ecx
push dword [ebp + 8]
mov edx, dword [eax + 8]
mov ecx, ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + edx]
call fcn.00489fc2
pop ecx
mov ecx, ebx
call fcn.00489128
add dword [esp + 0x18], 0x14
sub dword [esp + 0x1c], 1
jne 0x489b11
mov edx, dword [esp + 0x2c]
mov ecx, edi
jmp 0x4895a2
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x489bd4
mov edx, dword [esp + 0x30]
mov ecx, ebx
call fcn.0048ad8e
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov al, byte [eax + 3]
mov byte [esp + 0x27], al
test al, 0xc0
mov eax, dword [esp + 0x20]
je 0x489baf
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
mov cl, byte [edx]
cmp cl, 0x98
je 0x489ba8
cmp cl, 0x9a
jne 0x489baf
mov cl, byte [esp + 0x27]
mov byte [edx + 0x23], cl
inc dword [ebx + 0x5c]
mov edx, eax
push 1
push dword [esp + 0x30]
mov ecx, ebx
call fcn.0048a17e
pop ecx
pop ecx
mov ecx, ebx
call fcn.00489128
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
jmp 0x489bd8
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x30]
cmp eax, 2
jl 0x489bf3
test byte [edi + 2], 0x80
je 0x489bfb
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x14]
jmp 0x489c04
test eax, eax
jle 0x489c8f
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 8]
mov eax, dword [eax]
mov edi, dword [esp + 0x44]
mov ecx, edi
push eax
push dword [esp + 0x2c]
call fcn.004a251f
pop ecx
pop ecx
mov ecx, esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ecx
mov eax, esi
mov dword [esp + 0x28], esi
mov edi, dword [esp + 0x20]
cmp eax, 0x20
jge 0x489c54
mov eax, dword [edi + 8]
xor edx, edx
inc edx
mov ecx, dword [ecx + eax]
call fcn.004883d3
test eax, eax
je 0x489c50
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
bts ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
test byte [eax + 3], 8
je 0x489c79
cmp dword [esp + 0x3c], esi
jne 0x489c79
mov edx, dword [edi + 8]
mov edx, dword [edx + ecx]
mov ecx, ebx
call fcn.004872e7
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
add ecx, 0x14
inc eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x30]
jl 0x489c26
mov edi, dword [esp + 0x40]
test byte [edi + 3], 8
je 0x489cd1
cmp dword [esp + 0x3c], esi
jne 0x489caa
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
push esi
push esi
push esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
push 0x11
pop edx
call fcn.0047a9c4
add esp, 0xc
mov edx, eax
mov ecx, esi
push 0xfffffffffffffffc
push dword [esp + 0x40]
call fcn.0047aef7
pop ecx
pop ecx
jmp 0x489cd5
mov esi, dword [esp + 0x10]
push 0xfffffffffffffffb
push edi
push dword [ebp + 8]
mov edi, dword [esp + 0x38]
mov ecx, esi
push edi
push dword [esp + 0x2c]
push 0x12
pop edx
call fcn.0047aa4a
mov dl, byte [esp + 0x44]
add esp, 0x14
mov ecx, esi
call fcn.0047ad58
mov eax, dword [esp + 0x30]
test eax, eax
je 0x489ee2
push eax
mov edx, edi
mov ecx, ebx
call fcn.0048adb9
jmp 0x489417
mov eax, dword [edi + 0x10]
mov dword [esp + 0x2c], esi
mov edx, dword [eax + 8]
mov esi, dword [eax]
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], esi
call fcn.0047aae8
mov edx, dword [edi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
test edx, edx
je 0x489d88
push 0xc
pop ecx
mov esi, edx
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x34]
mov ecx, ebx
push eax
call fcn.00489f8f
mov edx, dword [esp + 0x1c]
xor edi, edi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x7c]
pop ecx
mov byte [esp + 0x48], 0x84
mov byte [esp + 0x78], 0x4c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], edi
jmp 0x489d8a
xor edi, edi
test esi, esi
jle 0x489e89
lea eax, [esi - 1]
shr eax, 1
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
test edx, edx
je 0x489e1c
mov esi, dword [esp + 0x10]
inc dword [ebx + 0x5c]
mov ecx, esi
mov eax, dword [eax]
mov dword [esp + 0x84], eax
call fcn.0047aae8
mov edx, dword [esp + 0x2c]
mov esi, eax
push 8
push esi
mov ecx, ebx
call fcn.0048a566
mov edx, dword [esp + 0x28]
mov ecx, ebx
push dword [ebp + 8]
mov edx, dword [edx + 0x14]
call fcn.00489fc2
mov ecx, dword [esp + 0x1c]
add esp, 0xc
xor edx, edx
inc edx
push edi
push dword [esp + 0x20]
push edi
call fcn.0047a9c4
add esp, 0xc
mov ecx, ebx
call fcn.00489128
mov edx, esi
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.0047ab24
mov eax, dword [esp + 0x20]
add eax, 0x28
sub dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
jne 0x489da8
jmp 0x489e8d
inc dword [ebx + 0x5c]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax]
call fcn.0047aae8
mov edi, eax
mov edx, esi
push 8
push edi
mov ecx, ebx
call fcn.0048a566
mov edx, dword [esp + 0x28]
mov ecx, ebx
push dword [ebp + 8]
mov edx, dword [edx + 0x14]
call fcn.00489fc2
mov esi, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
xor edx, edx
inc edx
mov ecx, esi
push eax
push dword [esp + 0x20]
push eax
call fcn.0047a9c4
add esp, 0xc
mov ecx, ebx
call fcn.00489128
mov edx, edi
mov ecx, esi
call fcn.0047ab24
mov eax, dword [esp + 0x20]
add eax, 0x28
sub dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
jne 0x489e1c
jmp 0x489e8d
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
xor edi, edi
cmp dword [edx + 0xc], edi
je 0x489eb2
inc dword [ebx + 0x5c]
mov ecx, ebx
push dword [ebp + 8]
mov edx, dword [edx + 0xc]
call fcn.00489fc2
pop ecx
mov ecx, ebx
call fcn.00489128
jmp 0x489ec4
push edi
push dword [ebp + 8]
mov ecx, esi
push edi
push 0xa
pop edx
call fcn.0047a9c4
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov ecx, esi
call fcn.0047ab24
jmp 0x489862
push esi
push edx
push esi
push 0xa
pop edx
call fcn.0047a9c4
add esp, 0xc
mov esi, dword [esp + 0x14]
xor edi, edi
mov edx, dword [esp + 0x34]
mov ecx, ebx
call fcn.0048ad5a
cmp dword [esp + 0x38], 0
je 0x489f27
mov cl, byte [ebx + 0x13]
cmp cl, 8
jae 0x489f27
lea eax, [ebx + 0x64]
mov edx, dword [esp + 0x38]
cmp dword [eax + 0x10], edx
je 0x489f23
inc edi
add eax, 0x18
cmp edi, 0xa
jl 0x489f05
movzx eax, cl
mov dword [ebx + eax*4 + 0x1c], edx
inc byte [ebx + 0x13]
jmp 0x489f27
mov byte [eax + 8], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret