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

Disassembly:
push 0xffffffffffffffff
push 0x489a30
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x49e7c0]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
mov eax, dword [0x49e7c0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x90]
mov dword [ecx], edx
xor edx, edx
mov dword [ecx + 4], edx
mov ebp, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edx
mov word [esp + 0x40], dx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x88], edx
mov edx, dword [edi]
movzx ebx, word [ebp + edx*2]
cmp bx, 0xd
je 0x46fa9d
jmp 0x46eda0
cmp bx, 0xa
je 0x46fa99
mov esi, dword [edi]
cmp esi, dword [esp + 0x18]
jge 0x46fa99
cmp dword [0x4a00dc], 0
je 0x46fa85
cmp bx, 0x2d
jne 0x46ee94
cmp word [ebp + esi*2 + 2], bx
mov ecx, 1
jne 0x46fa85
mov eax, esi
lea eax, [ebp + eax*2 + 2]
add eax, 2
add ecx, 1
cmp word [eax], 0x2d
je 0x46ede3
cmp ecx, 0x1e
jle 0x46fa85
lea ebx, [esi + ecx]
movzx eax, word [ebp + ebx*2]
cmp ax, 0xd
je 0x46ee10
cmp ax, 0xa
jne 0x46fa85
movzx eax, word [ebp + ebx*2]
xor ecx, ecx
test ax, ax
je 0x46fa85
lea edx, [esi + 0x320]
cmp ebx, edx
jge 0x46ee6f
cmp ax, 0x2d
jne 0x46ee35
add ecx, 1
jmp 0x46ee48
cmp ecx, 0x1e
jle 0x46ee46
cmp ax, 0xd
je 0x46ee57
cmp ax, 0xa
je 0x46ee57
xor ecx, ecx
movzx eax, word [ebp + ebx*2 + 2]
add ebx, 1
test ax, ax
jne 0x46ee26
jmp 0x46ee6f
cmp word [ebp + ebx*2], 0xd
jne 0x46ee6c
cmp word [ebp + ebx*2 + 2], 0xa
jne 0x46ee6c
add ebx, 2
jmp 0x46ee6f
add ebx, 1
cmp ecx, 0x1e
jle 0x46fa85
mov ecx, dword [esp + 0x14]
add ecx, 8
mov edx, ebx
push esi
sub edx, esi
push ecx
call fcn.0046ec70
add esp, 8
mov dword [edi], ebx
jmp 0x46fa88
cmp bx, 0x300a
jne 0x46efc9
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x46eebe
mov ecx, dword [esp + 0x28]
cmp eax, ecx
mov dword [esp + 0x28], eax
jge 0x46eeb8
sub ecx, eax
jmp 0x46ef22
mov ecx, esi
sub ecx, eax
jmp 0x46ef22
cmp dword [esp + 0x24], 0
je 0x46eeda
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add edx, eax
cmp edx, esi
jne 0x46eeda
lea edx, [eax - 1]
mov ebx, eax
jmp 0x46eedf
lea edx, [esi - 1]
mov ebx, esi
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
xor ecx, ecx
cmp esi, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
jle 0x46ef26
mov ax, word [ebp + edx*2]
call fcn.0046bfa0
sub edx, 1
mov ecx, eax
js 0x46ef17
mov ax, word [ebp + edx*2]
call fcn.0046bfa0
cmp ecx, eax
jne 0x46ef17
sub edx, 1
jns 0x46ef04
add edx, 1
sub ebx, edx
mov dword [esp + 0x28], edx
mov ecx, ebx
mov dword [esp + 0x2c], ecx
mov ebx, dword [esp + 0x18]
lea eax, [esi + 1]
xor edx, edx
cmp eax, ebx
mov esi, eax
mov dword [esp + 0x24], 5
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edx
mov dword [edi], eax
jge 0x46ef91
cmp word [ebp + eax*2], 0x300b
je 0x46ef5b
add eax, 1
cmp eax, ebx
mov dword [edi], eax
jl 0x46ef47
jmp 0x46ef91
mov edx, eax
sub edx, esi
add eax, 1
test ecx, ecx
mov dword [esp + 0x38], edx
mov dword [edi], eax
jle 0x46ef91
test edx, edx
jle 0x46ef91
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
add edx, 8
push edx
call fcn.0046e990
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add esp, 8
test ecx, ecx
mov dword [esp + 0x1c], 0xffffffff
jle 0x46fa88
test edx, edx
jle 0x46fa88
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
sub edx, esi
add esi, 0xffffffff
add eax, 8
push esi
add edx, 1
push eax
call fcn.0046ec70
add esp, 8
jmp 0x46fa88
cmp bx, 0xff5c
jne 0x46eff2
mov edx, dword [esp + 0x14]
add edx, 8
push esi
lea ecx, [esi + 1]
push edx
mov edx, 1
mov dword [esp + 0x24], ecx
call fcn.0046ec70
add esp, 8
jmp 0x46fa85
movzx eax, word [ebp + esi*2]
cmp ax, 0xff3b
jne 0x46f543
cmp word [ebp + esi*2 + 2], 0xff03
jne 0x46f543
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
lea eax, [esi + 2]
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], esi
mov esi, 2
push esi
mov dword [esp + 0x24], eax
mov dword [edi], eax
lea eax, [ebp + eax*2]
push 0x48e47c
push eax
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f050
add dword [edi], esi
mov dword [esp + 0x24], esi
jmp 0x46f318
mov ecx, dword [edi]
mov ebx, 4
push ebx
lea edx, [ebp + ecx*2]
push 0x48e470
push edx
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f079
add dword [edi], ebx
mov dword [esp + 0x24], esi
jmp 0x46f318
mov eax, dword [edi]
push esi
lea ecx, [ebp + eax*2]
push 0x48e468
push ecx
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f09d
add dword [edi], esi
mov dword [esp + 0x24], esi
jmp 0x46f318
mov edx, dword [edi]
push esi
lea eax, [ebp + edx*2]
push 0x48e460
push eax
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f0c1
add dword [edi], esi
mov dword [esp + 0x24], esi
jmp 0x46f318
mov ecx, dword [edi]
push ebx
lea edx, [ebp + ecx*2]
push str.S0S0K0
push edx
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f11a
mov eax, dword [esp + 0x18]
add dword [edi], ebx
push eax
push edi
push ebp
call fcn.0046c030
mov ecx, dword [edi]
push 3
lea edx, [ebp + ecx*2]
push str.W__vNR0
push edx
mov dword [esp + 0x48], eax
call fcn.00477bc0
add esp, 0x18
test eax, eax
jne 0x46f318
add dword [edi], 3
mov dword [esp + 0x24], 3
jmp 0x46f318
mov eax, dword [edi]
push 6
lea ecx, [ebp + eax*2]
push str.S0S0g0W__vNR0
push ecx
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f148
add dword [edi], 6
mov dword [esp + 0x24], 3
mov dword [esp + 0x30], eax
jmp 0x46f318
mov edx, dword [edi]
push 3
lea eax, [ebp + edx*2]
push str.0WK0
push eax
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f19f
mov ecx, dword [esp + 0x18]
add dword [edi], 3
push ecx
push edi
push ebp
call fcn.0046c030
mov edx, dword [edi]
push 3
mov dword [esp + 0x40], eax
lea eax, [ebp + edx*2]
push str.W__nNR0
push eax
call fcn.00477bc0
add esp, 0x18
test eax, eax
jne 0x46f318
add dword [edi], 3
mov dword [esp + 0x24], ebx
jmp 0x46f318
mov ecx, dword [edi]
push 3
lea edx, [ebp + ecx*2]
push 0x48e424
push edx
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f1c9
add dword [edi], 3
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], eax
jmp 0x46f318
mov eax, dword [edi]
cmp word [ebp + eax*2], 0x300c
jne 0x46f318
mov ecx, dword [esp + 0x18]
add eax, 1
cmp eax, ecx
mov dword [edi], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
jge 0x46f318
cmp word [ebp + eax*2], 0x300d
je 0x46f20c
add eax, 1
cmp eax, ecx
mov dword [edi], eax
jl 0x46f1f5
jmp 0x46f318
add eax, 1
push 3
mov dword [edi], eax
lea eax, [ebp + eax*2]
push 0x48e41c
push eax
call fcn.00477bc0
mov ecx, dword [edi]
add esp, 0xc
test eax, eax
jne 0x46f235
mov dword [esp + 0x24], 6
jmp 0x46f257
push 3
lea edx, [ebp + ecx*2]
push 0x48e414
push edx
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f26b
mov ecx, dword [edi]
mov dword [esp + 0x24], 7
mov eax, ecx
sub eax, dword [esp + 0x28]
sub eax, 1
add ecx, 3
mov dword [esp + 0x2c], eax
mov dword [edi], ecx
jmp 0x46f2dd
mov eax, dword [edi]
push ebx
lea ecx, [ebp + eax*2]
push str.k08N
push ecx
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f2a1
mov ecx, dword [edi]
mov eax, ecx
sub eax, dword [esp + 0x28]
mov dword [esp + 0x24], 8
sub eax, 1
add ecx, ebx
mov dword [esp + 0x2c], eax
mov dword [edi], ecx
jmp 0x46f2dd
mov edx, dword [edi]
push 5
lea eax, [ebp + edx*2]
push str.k0v8N
push eax
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f2d9
mov ecx, dword [edi]
mov eax, ecx
sub eax, dword [esp + 0x28]
mov dword [esp + 0x24], 9
sub eax, 1
add ecx, 5
mov dword [esp + 0x2c], eax
mov dword [edi], ecx
jmp 0x46f2dd
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x46f318
mov esi, dword [esp + 0x10]
sub esi, eax
js 0x46f318
lea ebx, [ebp + esi*2]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
lea eax, [ebp + edx*2]
push eax
push ebx
call fcn.00477bc0
add esp, 0xc
test eax, eax
je 0x46f314
sub esi, 1
sub ebx, 2
test esi, esi
jge 0x46f2ed
jmp 0x46f318
mov dword [esp + 0x28], esi
mov ecx, dword [edi]
cmp word [ebp + ecx*2], 0xff3d
je 0x46f355
mov edx, dword [esp + 0x18]
jmp 0x46f330
mov eax, dword [edi]
movzx ecx, word [ebp + eax*2]
cmp cx, 0xd
je 0x46f355
cmp cx, 0xa
je 0x46f355
cmp eax, edx
jge 0x46f355
add eax, 1
mov dword [edi], eax
cmp word [ebp + eax*2], 0xff3d
jne 0x46f330
mov eax, dword [edi]
cmp word [ebp + eax*2], 0xff3d
jne 0x46fa88
mov ecx, dword [esp + 0x24]
add eax, 1
test ecx, ecx
mov dword [edi], eax
je 0x46f3df
cmp ecx, 2
je 0x46f37b
cmp ecx, 3
jne 0x46f3a4
movzx ecx, word [ebp + eax*2]
cmp cx, 0xd
jne 0x46f399
cmp word [ebp + eax*2 + 2], 0xa
jne 0x46f393
add eax, 2
jmp 0x46f3a2
cmp cx, 0xd
je 0x46f39f
cmp cx, 0xa
jne 0x46f3a4
add eax, 1
mov dword [edi], eax
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea esi, [ebx + 8]
push esi
call fcn.0046e990
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
push eax
sub edx, eax
push esi
call fcn.0046ec70
add esp, 0x10
cmp dword [esp + 0x24], 2
jne 0x46fa88
mov ecx, dword [edi]
sub ecx, dword [ebx]
mov dword [ebx + 4], ecx
jmp 0x46fac6
mov edx, eax
sub edx, dword [esp + 0x10]
cmp edx, 7
jle 0x46f49f
cmp word [ebp + eax*2 - 8], 0xff09
lea esi, [eax - 4]
jne 0x46f49f
cmp word [ebp + eax*2 - 6], 0x5165
jne 0x46f49f
cmp word [ebp + eax*2 - 4], 0x308b
jne 0x46f49f
mov ecx, dword [esp + 0x20]
cmp ecx, esi
jge 0x46f435
cmp word [ebp + ecx*2], 0xff08
je 0x46f442
mov esi, eax
add ecx, 1
sub esi, 4
cmp ecx, esi
jl 0x46f420
cmp word [ebp + ecx*2], 0xff08
jne 0x46fa88
mov ebx, dword [esp + 0x10]
sub eax, ecx
sub eax, 5
mov dword [esp + 0x2c], edx
lea edx, [ebp + ecx*2 + 2]
push eax
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x30], ebx
call fcn.00402680
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
add esi, 8
push esi
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 1
call fcn.0046e990
mov edx, dword [edi]
push ebx
sub edx, ebx
push esi
call fcn.0046ec70
add esp, 0x10
jmp 0x46fa88
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add esi, 8
cmp word [ebp + ecx*2], 0xff08
push ebx
push esi
jne 0x46f4fe
mov edx, 3
call fcn.0046ec70
mov edx, dword [edi]
lea eax, [esp + 0x2c]
push eax
sub edx, ebx
push esi
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
call fcn.0046e990
mov ecx, dword [esp + 0x3c]
lea edx, [ebx + ecx - 2]
push edx
push esi
mov edx, 2
call fcn.0046ec70
add esp, 0x18
jmp 0x46fa88
mov edx, 2
call fcn.0046ec70
mov eax, dword [edi]
lea ecx, [esp + 0x2c]
push ecx
sub eax, ebx
push esi
mov dword [esp + 0x34], 0xb
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
call fcn.0046e990
mov edx, dword [esp + 0x3c]
lea eax, [ebx + edx - 1]
push eax
push esi
mov edx, 1
call fcn.0046ec70
add esp, 0x18
jmp 0x46fa88
cmp ax, 0x203b
jne 0x46f6fc
cmp word [ebp + esi*2 + 2], 0xff3b
jne 0x46f6fc
cmp word [ebp + esi*2 + 4], 0xff03
jne 0x46f6fc
lea eax, [esi + 3]
push 5
lea ecx, [ebp + eax*2]
xor ebx, ebx
push 0x48e3f0
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
mov dword [edi], eax
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f620
add dword [edi], 5
mov dword [esp + 0x24], 0xd
mov dword [esp + 0x30], ebx
mov ecx, dword [edi]
cmp word [ebp + ecx*2], 0xff3d
je 0x46f5d9
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
movzx ecx, word [ebp + eax*2]
cmp cx, 0xd
je 0x46f5d9
cmp cx, 0xa
je 0x46f5d9
cmp eax, edx
jge 0x46f5d9
add eax, 1
mov dword [edi], eax
cmp word [ebp + eax*2], 0xff3d
jne 0x46f5b4
mov eax, dword [edi]
cmp word [ebp + eax*2], 0xff3d
jne 0x46fa88
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
add eax, 1
add ebx, 8
push ebx
mov dword [edi], eax
mov dword [esp + 0x34], 1
call fcn.0046e990
mov edx, dword [edi]
sub edx, esi
add esi, 1
push esi
sub edx, 1
push ebx
call fcn.0046ec70
add esp, 0x10
jmp 0x46fa88
mov edx, dword [edi]
push 5
lea eax, [ebp + edx*2]
push 0x48e3e4
push eax
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f652
add dword [edi], 5
mov dword [esp + 0x24], 0xd
mov dword [esp + 0x30], 1
jmp 0x46f5a5
mov ecx, dword [edi]
push 6
lea edx, [ebp + ecx*2]
push 0x48e3d4
push edx
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f684
add dword [edi], 6
mov dword [esp + 0x24], 0xd
mov dword [esp + 0x30], 2
jmp 0x46f5a5
mov eax, dword [edi]
push 6
lea ecx, [ebp + eax*2]
push 0x48e3c4
push ecx
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f6b6
add dword [edi], 6
mov dword [esp + 0x24], 0xd
mov dword [esp + 0x30], 3
jmp 0x46f5a5
mov edx, dword [edi]
push 5
lea eax, [ebp + edx*2]
push 0x48e3b8
push eax
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x46f6e8
add dword [edi], 5
mov dword [esp + 0x24], 0xd
mov dword [esp + 0x30], 4
jmp 0x46f5a5
cmp dword [esp + 0x24], ebx
jne 0x46f5a5
add esi, 1
mov dword [edi], esi
jmp 0x46fa88
cmp ax, 0xff3d
jne 0x46f77a
mov ecx, dword [esp + 0x14]
add ecx, 8
call fcn.0046c710
test eax, eax
jne 0x46f77a
lea ecx, [esi - 2]
test ecx, ecx
jl 0x46fa85
mov edx, 0xff03
jmp 0x46f730
movzx eax, word [ebp + ecx*2]
cmp ax, 0xff3d
je 0x46fa85
cmp ax, 0xd
je 0x46fa85
cmp ax, 0xa
je 0x46fa85
cmp ax, 0xff3b
jne 0x46f760
cmp word [ebp + ecx*2 + 2], dx
je 0x46f76a
sub ecx, 1
jns 0x46f730
jmp 0x46fa85
cmp ecx, 0xffffffff
je 0x46fa85
mov dword [edi], ecx
jmp 0x46fa88
cmp bx, 0x3c
jne 0x46fa85
xor eax, eax
lea edx, [ebp + esi*2 + 2]
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], eax
mov word [esp + 0x64], ax
lea ebx, [esp + 0x60]
lea esi, [esp + 0x10]
mov byte [esp + 0x88], 1
call fcn.0046cf80
test eax, eax
jne 0x46fa74
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x46f7cf
lea eax, [esp + 0x64]
push 0x48e3b0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46fa74
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], 0xa
call fcn.00402760
lea ebx, [esp + 0x60]
lea esi, [esp + 0x10]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 1
call fcn.0046cf80
test eax, eax
jne 0x46fa00
lea ebx, [ebx]
mov eax, dword [esp + 0x64]
mov ebx, 8
cmp dword [esp + 0x78], ebx
jae 0x46f833
lea eax, [esp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x48e3a8
push eax
call esi
test eax, eax
jne 0x46f893
lea ebx, [esp + 0x60]
lea esi, [esp + 0x10]
call fcn.0046cf80
test eax, eax
jne 0x46f9eb
mov eax, ebx
push 0x48c25c
push eax
call fcn.00427fc0
add esp, 8
test al, al
je 0x46f9eb
call fcn.0046cf80
test eax, eax
jne 0x46f9eb
push 0xffffffffffffffff
push eax
mov ecx, ebx
push ecx
lea ecx, [esp + 0x48]
call fcn.00402360
jmp 0x46f9eb
cmp dword [esp + 0x78], ebx
mov eax, dword [esp + 0x64]
jae 0x46f8a1
lea eax, [esp + 0x64]
push str.width
push eax
call esi
test eax, eax
jne 0x46f90a
lea ebx, [esp + 0x60]
lea esi, [esp + 0x10]
call fcn.0046cf80
test eax, eax
jne 0x46f9eb
mov edx, ebx
push 0x48c25c
push edx
call fcn.00427fc0
add esp, 8
test al, al
je 0x46f9eb
call fcn.0046cf80
test eax, eax
jne 0x46f9eb
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x46f8f6
lea eax, [esp + 0x64]
push 0
push eax
call fcn.004421c0
add esp, 8
mov dword [esp + 0x58], eax
jmp 0x46f9eb
cmp dword [esp + 0x78], ebx
mov eax, dword [esp + 0x64]
jae 0x46f918
lea eax, [esp + 0x64]
push str.valign
push eax
call esi
test eax, eax
jne 0x46f9d5
lea ebx, [esp + 0x60]
lea esi, [esp + 0x10]
call fcn.0046cf80
test eax, eax
jne 0x46f9eb
mov eax, ebx
push 0x48c25c
push eax
call fcn.00427fc0
add esp, 8
test al, al
je 0x46f9eb
call fcn.0046cf80
test eax, eax
jne 0x46f9eb
mov eax, dword [esp + 0x64]
mov ebx, 8
cmp dword [esp + 0x78], ebx
jae 0x46f975
lea eax, [esp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x48e384
push eax
call esi
test eax, eax
jne 0x46f98d
mov dword [esp + 0x5c], eax
jmp 0x46f9eb
cmp dword [esp + 0x78], ebx
mov eax, dword [esp + 0x64]
jae 0x46f99b
lea eax, [esp + 0x64]
push str.bottom
push eax
call esi
test eax, eax
jne 0x46f9b1
mov dword [esp + 0x5c], 2
jmp 0x46f9eb
cmp dword [esp + 0x78], ebx
mov eax, dword [esp + 0x64]
jae 0x46f9bf
lea eax, [esp + 0x64]
push 0x48e364
push eax
call esi
test eax, eax
jne 0x46f9eb
mov dword [esp + 0x5c], 1
jmp 0x46f9eb
lea ecx, [esp + 0x60]
push 0x48c35c
push ecx
call fcn.00427fc0
add esp, 8
test al, al
jne 0x46fa00
lea ebx, [esp + 0x60]
lea esi, [esp + 0x10]
call fcn.0046cf80
test eax, eax
je 0x46f820
cmp dword [esp + 0x50], 0
jbe 0x46fa74
mov eax, dword [esp + 0x10]
movzx ecx, word [eax]
cmp cx, 0xd
jne 0x46fa20
cmp word [eax + 2], 0xa
jne 0x46fa26
add eax, 4
jmp 0x46fa29
cmp cx, 0xa
jne 0x46fa29
add eax, 2
mov edx, dword [edi]
mov esi, dword [esp + 0x14]
add edx, edx
sub eax, edx
sub eax, ebp
sar eax, 1
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
add esi, 8
push esi
call fcn.0046e990
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push ecx
push esi
call fcn.0046ec70
mov edx, dword [esp + 0x3c]
add dword [edi], edx
add esp, 0x10
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 0
call fcn.00401f00
jmp 0x46fa88
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 0
call fcn.00401f00
add dword [edi], 1
mov eax, dword [edi]
movzx ebx, word [ebp + eax*2]
cmp bx, 0xd
jne 0x46eda0
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
sub edx, dword [ecx]
mov dword [ecx + 4], edx
mov eax, dword [edi]
cmp eax, dword [esp + 0x18]
jge 0x46face
cmp word [ebp + eax*2], 0xd
jne 0x46fac1
cmp word [ebp + eax*2 + 2], 0xa
jne 0x46fac1
add eax, 2
jmp 0x46fac4
add eax, 1
mov dword [edi], eax
mov eax, dword [esp + 0x18]
cmp dword [edi], eax
jl 0x46fae9
cmp dword [esp + 0x54], 8
jb 0x46fae2
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004775de
add esp, 4
mov eax, 1
jmp 0x46faff
cmp dword [esp + 0x54], 8
jb 0x46fafd
mov edx, dword [esp + 0x40]
push edx
call fcn.004775de
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004777ea
add esp, 0x7c
ret