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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
pcmpeqd xmm0, xmm0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
mov ebx, dword [ecx]
cmp dword [ecx + 0x24], 0
jne 0x478f8c
cmp byte [ebx + 0x51], 0
jne 0x478f8c
mov dword [esp + 4], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x30], edx
test ecx, ecx
je 0x478c9a
mov eax, dword [ebx + 0x10]
add eax, 0xfffffff0
nop dword [eax + eax]
cmp dword [eax + 0x1c], ecx
lea eax, [eax + 0x10]
jne 0x478c90
jmp 0x478c9d
lea eax, [edx + 0xc]
mov ecx, dword [esp + 4]
xor edx, edx
mov dword [esp + 0x14], 0
push dword [eax]
mov esi, dword [esp + 0x34]
push dword [esi + 0x10]
call fcn.0042a6e0
add esp, 8
mov edx, esi
mov esi, eax
mov dword [esp + 8], eax
mov eax, dword [edx + 0x18]
test eax, eax
je 0x478cee
mov ecx, dword [esp + 4]
mov ecx, dword [ecx]
test ecx, ecx
je 0x478cde
cmp dword [ecx + 0x1f8], 0
jne 0x478ce3
dec dword [eax + 0x20]
jne 0x478cee
mov edx, eax
call fcn.0046d910
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 8]
test esi, esi
mov dword [edx + 0x18], ecx
je 0x478f8c
mov dword [esp + 0x20], esi
inc dword [ecx + 0x20]
mov dword [esp + 0x24], ebx
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x478d89
test byte [edx + 0x2d], 2
je 0x478d89
mov eax, dword [edx + 0x48]
mov edi, dword [ecx + 8]
test edi, edi
je 0x478d59
mov edx, dword [edi]
xor esi, esi
jmp 0x478d40
movzx ebx, byte [ebx + 0x50ce7b]
cmp bl, byte [ecx + 0x50ce7b]
jne 0x478d52
inc esi
movzx ebx, byte [edx + esi]
movzx ecx, byte [eax + esi]
cmp bl, cl
jne 0x478d30
test bl, bl
jne 0x478d3f
jmp 0x478d7e
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x478d1f
push 0
push eax
push str.no_such_index:__s
mov esi, dword [esp + 0x10]
push esi
call fcn.0042af90
add esp, 0x10
mov ebx, dword [esp + 0x24]
mov edi, dword [ebp + 8]
mov byte [esi + 0x11], 1
jmp 0x47944e
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
mov dword [eax + 0x4c], edi
mov esi, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [esi]
test byte [eax + 0x22], 4
je 0x478da2
cmp byte [esi + 0x92], 0
je 0x478e0f
cmp dword [ecx + 0xc], 0
sete byte [esp + 0x3c]
mov eax, dword [esi]
test byte [eax + 0x21], 0x40
mov eax, 0
je 0x478f49
mov eax, ecx
mov ecx, dword [ecx]
mov esi, dword [eax + 0x48]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x478eb6
mov bl, byte [ecx]
mov dword [esp + 0x10], eax
test bl, bl
je 0x478ebe
lea edx, [ecx + 1]
xor eax, eax
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx edi, bl
movzx ebx, byte [edx]
inc edx
movzx edi, byte [edi + 0x50ce7b]
add edi, eax
imul eax, edi, 0x9e3779b1
test bl, bl
jne 0x478df0
jmp 0x478ec0
mov eax, dword [eax + 0x10]
mov edx, dword [ecx + 0x48]
mov eax, dword [eax + 0x1c]
cmp eax, edx
je 0x478fde
mov eax, dword [eax + 0x30]
test eax, eax
je 0x478fde
mov dword [esp + 0x10], 0
mov edi, dword [eax + 8]
cmp dword [edi + 0x18], edx
je 0x478e41
mov edi, dword [esp + 0x10]
jmp 0x478ea0
mov edx, dword [edi + 4]
mov esi, dword [ecx]
mov dword [esp + 0x50], edi
xor edi, edi
jmp 0x478e55
test bl, bl
je 0x478e82
inc edi
movzx ebx, byte [edx + edi]
movzx ecx, byte [esi + edi]
cmp bl, cl
je 0x478e50
movzx ebx, byte [ebx + 0x50ce7b]
cmp bl, byte [ecx + 0x50ce7b]
je 0x478e54
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 4]
mov ecx, dword [esp + 8]
jmp 0x478ea0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
test edx, edx
jne 0x478e91
mov edx, dword [ecx + 0x44]
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 4]
mov dword [edi + 0x20], edx
mov eax, dword [eax]
test eax, eax
je 0x478fda
mov edx, dword [ecx + 0x48]
mov dword [esp + 0x10], edi
jmp 0x478e33
lea eax, [esi + 0x40]
add esi, 0x3c
jmp 0x478ed4
xor eax, eax
xor edx, edx
div dword [esi + 0x38]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
lea eax, [esi + edx*8 + 4]
lea esi, [esi + edx*8]
mov esi, dword [esi]
mov edx, 0x51ea84
test esi, esi
je 0x478f2d
mov eax, dword [eax]
dec esi
xor edi, edi
mov edx, dword [eax + 0xc]
mov dword [esp + 0x10], eax
jmp 0x478f00
movzx ebx, byte [ebx + 0x50ce7b]
cmp bl, byte [eax + 0x50ce7b]
jne 0x478f12
inc edi
movzx ebx, byte [edx + edi]
movzx eax, byte [ecx + edi]
cmp bl, al
jne 0x478ef0
test bl, bl
jne 0x478eff
jmp 0x478f25
mov eax, dword [esp + 0x10]
test esi, esi
jne 0x478edf
mov ebx, dword [esp + 0x24]
mov edx, 0x51ea84
jmp 0x478f2d
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
cmp dword [edx + 8], 0
mov esi, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, 1
jne 0x478f49
xor eax, eax
cmp dword [ecx + 0x10], 0
setne al
test eax, eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x10], 0
setne byte [esp + 0xc]
mov edi, dword [esp + 8]
mov ecx, esi
mov edx, edi
call fcn.00497e50
test eax, eax
jne 0x478f85
mov ecx, esi
mov edx, edi
push dword [esp + 0x10]
call fcn.004bb250
add esp, 4
test eax, eax
je 0x478fb7
mov edx, dword [esp + 0x30]
mov edi, dword [ebp + 8]
mov ecx, ebx
call fcn.00469df0
test edi, edi
je 0x478fa0
mov ecx, ebx
mov edx, edi
call fcn.00469b50
mov edx, dword [esp + 0x14]
test edx, edx
je 0x478faf
mov ecx, ebx
call fcn.004352c0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x48]
mov eax, dword [ebx + 0x10]
test ecx, ecx
je 0x47903c
lea edx, [eax + 0xc]
mov esi, 0xffffffff
nop dword [eax]
inc esi
cmp dword [edx], ecx
lea edx, [edx + 0x10]
jne 0x478fd0
jmp 0x479041
test edi, edi
jne 0x478fe9
mov edi, dword [ecx + 0x44]
test edi, edi
je 0x478da2
xor eax, eax
mov ecx, edi
jmp 0x478ff7
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x479005
cmp byte [ecx + 8], 0x7e
jne 0x478ff0
movzx edx, byte [ecx + 9]
or eax, edx
jmp 0x478ff0
mov esi, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
je 0x478da2
cmp dword [ecx + 0xc], 0
sete byte [esp + 0x3c]
test edi, edi
je 0x478dab
mov dword [esp + 0x50], edi
mov byte [esp + 0xc], 1
mov dword [esp + 0x10], 1
jmp 0x478f60
mov esi, 0xfff0bdc0
mov ecx, dword [esp + 4]
mov edi, esi
mov edx, 9
shl edi, 4
push dword [eax + edi]
push 0
mov eax, dword [esp + 0x10]
push dword [eax]
call fcn.004910a0
mov ecx, dword [esp + 0x10]
add esp, 0xc
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x30]
cmp eax, 1
je 0x478f8c
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x28]
mov edi, ecx
mov dword [esp + 0x64], 0
lea ecx, [eax + 1]
mov dword [esp + 0x10], eax
mov dword [edi + 0x28], ecx
mov dword [edx + 0x30], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x28], ecx
mov ecx, 0
mov eax, dword [eax + 8]
test eax, eax
je 0x4790cb
mov ecx, dword [esp + 4]
mov edi, dword [esp + 4]
mov ecx, dword [ecx + 0x28]
inc ecx
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov edx, dword [esp + 0x14]
add edx, ecx
inc ecx
mov dword [edi + 0x28], edx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4790ba
mov dword [esp + 0x58], ecx
cmp byte [esp + 0x3c], 0
mov ecx, dword [esp + 4]
mov dword [esp + 0x68], 0
jne 0x4790fc
mov eax, dword [esp + 8]
mov edx, dword [ecx + 0xf0]
mov dword [esp + 0x68], ecx
mov eax, dword [eax]
mov dword [esp + 0x64], edx
mov dword [ecx + 0xf0], eax
call fcn.00485cb0
mov edi, dword [ebp + 8]
test eax, eax
je 0x479434
mov ecx, dword [esp + 4]
movzx edx, byte [esp + 0xc]
mov dword [esp + 0x14], 0
cmp byte [ecx + 0x12], 0
jne 0x47912a
or byte [eax + 0x96], 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], edx
push esi
call fcn.00491430
add esp, 4
cmp byte [esp + 0x3c], 0
jne 0x479163
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push dword [esp + 0x10]
push edi
call fcn.004bb2f0
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
lea ecx, [esp + 0x70]
mov edx, edi
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x74], eax
call fcn.004930f0
test eax, eax
jne 0x47943c
test byte [ebx + 0x24], 1
jne 0x4791da
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], 0
jmp 0x479229
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x1c]
cmp byte [ecx + 0x12], 0
je 0x4791f2
mov dword [esp + 0x38], 0
jmp 0x479229
cmp dword [ecx + 0x78], 0
mov dword [esp + 0x38], 0
jne 0x479229
mov eax, dword [ecx + 0x2c]
mov edx, 0x45
inc eax
mov dword [ecx + 0x2c], eax
mov ecx, dword [esp + 0xc]
push 0
mov dword [esp + 0x3c], eax
push eax
push 0
call fcn.0046c5a0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
add esp, 0xc
add dword [esp + 0x20], 8
test edx, edx
jne 0x47924b
test edi, edi
jne 0x47924b
cmp dword [esp + 0x2c], 0
jne 0x47924b
mov eax, dword [esp + 8]
cmp dword [eax + 0x38], 0
je 0x479579
xor dl, 1
test byte [esp + 0x88], 0x40
mov esi, dword [esp + 8]
movzx eax, dl
mov edx, 0x414
lea eax, [eax*8 + 0x414]
cmove edx, eax
cmp byte [esi + 0x24], 0
mov dword [esp + 0x14], edx
js 0x4792bf
mov ebx, dword [ecx + 0x2c]
mov esi, ecx
mov edx, 0x48
inc ebx
mov dword [ecx + 0x2c], ebx
mov ecx, dword [esp + 0xc]
push 0
push ebx
push 0
call fcn.0046c5a0
add esp, 0xc
mov ax, 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x34], eax
jmp 0x47932a
mov edx, dword [esp + 0x20]
mov esi, dword [edx]
movzx eax, word [esi + 0x37]
lea edx, [esi + 0x14]
and eax, 3
cmp ax, 2
jne 0x4792c3
movsx eax, word [esi + 0x32]
mov ebx, dword [ecx + 0x28]
mov dword [esp + 0x2c], esi
mov esi, ecx
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x2c]
lea edx, [eax + 1]
add eax, dword [esp + 0x34]
mov dword [esp + 0x1c], edx
mov edx, 0x64
mov dword [ecx + 0x2c], eax
lea eax, [ebx + 1]
mov dword [ecx + 0x28], eax
mov ecx, dword [esp + 0xc]
push 0
push dword [esp + 0x38]
mov dword [esp + 0x54], ebx
push ebx
call fcn.0046c5a0
add esp, 0xc
mov edx, dword [esp + 0x2c]
mov ecx, esi
mov dword [esp + 0x60], eax
call fcn.00486540
xor ebx, ebx
movzx eax, word [esp + 0x14]
mov edx, dword [esp + 0x30]
mov ecx, esi
push dword [esp + 0x28]
push eax
push 0
push 0
push edi
call fcn.004a01c0
add esp, 0x14
test eax, eax
je 0x479430
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 0
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 0x18]
mov al, byte [eax + 0x2e]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 4]
cmp al, 1
mov byte [esp + 0x1b], al
je 0x47938c
mov eax, dword [ecx + 0x74]
test eax, eax
cmove eax, ecx
mov byte [eax + 0x14], 1
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
test eax, eax
je 0x4793b2
mov ecx, dword [esp + 0xc]
mov edx, 0x52
push 0
push 1
push eax
call fcn.0046c5a0
mov ecx, dword [esp + 0x10]
add esp, 0xc
test esi, esi
je 0x479457
movsx eax, word [esp + 0x34]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
test ax, ax
mov dword [esp + 0x28], eax
jle 0x479414
xor edi, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], ecx
mov eax, dword [esi + 4]
mov esi, edx
movsx eax, word [eax + edi*2]
mov dword [esp + 0x20], eax
lea eax, [ecx + edi]
mov ecx, ebx
push eax
push dword [esp + 0x24]
push dword [esp + 0x18]
call fcn.0048be20
mov edx, esi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
add esp, 0xc
inc edi
cmp eax, edi
jne 0x4793de
cmp byte [esp + 0x1b], 0
je 0x47960d
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov edi, dword [ebp + 8]
mov dword [esp + 0x20], eax
jmp 0x479484
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x47944e
mov eax, dword [esp + 0x64]
mov dword [ecx + 0xf0], eax
mov edx, dword [esp + 0x30]
jmp 0x478f8c
mov eax, dword [ecx + 0x2c]
mov edx, dword [esp + 8]
inc eax
mov dword [ecx + 0x2c], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], eax
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
call fcn.0048be20
add esp, 0xc
cmp byte [esp + 0x1b], 0
je 0x4796b1
mov eax, dword [esp + 0x58]
mov ecx, ebx
lea edx, [eax + 2]
push 0
call fcn.00435490
add esp, 4
test eax, eax
je 0x4796a3
mov ebx, dword [esp + 0x58]
mov esi, eax
lea eax, [ebx + 1]
push eax
push 1
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x6c]
mov byte [esi + ebx + 1], 0
test eax, eax
js 0x4794c9
sub eax, dword [esp + 0x10]
mov byte [esi + eax], 0
cmp dword [esp + 0x54], 0
mov ebx, dword [esp + 4]
mov dword [esp + 0x14], esi
js 0x4794e8
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
mov byte [ecx + eax], 0
mov edx, dword [esp + 0x60]
test edx, edx
je 0x4794fd
mov ecx, dword [esp + 0xc]
call fcn.0048f930
mov ebx, dword [esp + 4]
mov eax, dword [ebx + 0x38]
mov edx, dword [esp + 8]
dec eax
cmp byte [esp + 0x3c], 0
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x38], eax
je 0x4797fe
cmp byte [esp + 0x1b], 2
jne 0x47976b
mov esi, dword [esp + 0xc]
mov edi, ebx
mov edx, 0x11
mov ecx, esi
push 0
push 0
push 0
call fcn.0046c5a0
add esp, 0xc
mov edx, dword [esp + 8]
mov ebx, eax
lea eax, [esp + 0x48]
mov ecx, edi
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 8
push 0x61
call fcn.004bb540
add esp, 0x18
mov eax, dword [esi + 0x6c]
lea ecx, [eax - 1]
cmp ecx, ebx
jne 0x4797d1
mov dword [esi + 0x6c], ebx
jmp 0x4797f3
mov edi, dword [esp + 8]
mov edx, esi
push dword [edi]
push 1
push dword [edi + 0x1c]
call fcn.004863b0
add esp, 0xc
cmp byte [edi + 0x24], 0
js 0x4795d5
mov eax, dword [edi]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], eax
xor eax, eax
cmp edx, 1
mov ecx, edi
sbb eax, eax
or eax, edx
mov edx, 0x89
push eax
push esi
mov eax, dword [esp + 0x10]
push dword [eax + 0x1c]
call fcn.0046c5a0
add esp, 0xc
mov ecx, edi
mov edx, eax
push 0xffffffffffffffff
push dword [esp + 0x18]
call fcn.0042b420
add esp, 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], 0
mov edi, dword [eax]
test edi, edi
je 0x479605
mov ecx, dword [esp + 0xc]
mov edx, 0x89
push 0
push esi
push dword [edi + 0x2c]
call fcn.0046c5a0
add esp, 0xc
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x4795e7
mov edi, dword [ebp + 8]
jmp 0x479a25
mov ebx, eax
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x2c]
mov edi, dword [eax + 0x2c]
mov ecx, dword [eax]
inc edi
mov dword [eax + 0x2c], edi
call fcn.0049b140
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov edx, 0x5b
mov ecx, esi
push edi
push ebx
push dword [esp + 0x24]
call fcn.0046c5a0
add esp, 0xc
mov ecx, esi
mov edx, eax
push ebx
push dword [esp + 0x18]
call fcn.0042b420
add esp, 8
mov ecx, esi
mov edx, 0x82
push dword [esp + 0x1c]
mov dword [esp + 0x24], edi
push edi
push dword [esp + 0x54]
call fcn.0046c5a0
add esp, 0xc
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
cmp byte [ecx + 0x51], 0
jne 0x479691
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
lea eax, [eax + eax*4]
mov ecx, dword [ecx + 0x68]
mov byte [ecx + eax*4 + 1], 0xfd
mov dword [ecx + eax*4 + 0x10], edx
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x34], 0
jmp 0x4796d8
mov ecx, dword [esp + 0x44]
call fcn.004a49a0
jmp 0x47943c
mov ecx, dword [esp + 0xc]
mov edx, 0x93
push 0
push dword [esp + 0x24]
push dword [esp + 0x64]
call fcn.0046c5a0
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov ax, 1
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x44]
call fcn.004a49a0
cmp byte [esp + 0x3c], 0
je 0x47970d
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
lea eax, [esp + 0x48]
lea esi, [esp + 0x40]
push eax
push esi
mov esi, dword [esp + 0x34]
push 0
push ebx
push 8
push 0x61
call fcn.004bb540
add esp, 0x18
test esi, esi
je 0x47974a
mov esi, dword [esp + 0xc]
mov edx, 0x25
mov ecx, esi
push 0
push 0
mov ebx, dword [esp + 0x54]
push ebx
call fcn.0046c5a0
add esp, 0xc
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x38], 0
je 0x47979f
mov ecx, esi
mov edx, 0x59
push dword [esp + 0x20]
push 0
jmp 0x4797ac
mov ecx, dword [esp + 0xc]
mov edx, 0x2a
push dword [esp + 0x20]
push 0
push dword [esp + 0x64]
call fcn.0046c5a0
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4797b5
mov esi, edi
mov edi, dword [esp + 8]
mov ecx, dword [esp + 4]
lea eax, [esp + 0x48]
lea ebx, [esp + 0x40]
mov edx, edi
push eax
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 8
push 0x61
call fcn.004bb540
mov ebx, dword [esp + 0x1c]
mov edx, edi
add esp, 0x18
mov edi, esi
jmp 0x4797fe
mov ecx, esi
mov edx, 0x7e
push 0
push dword [esp + 0x24]
push ebx
call fcn.0046c5a0
add esp, 0xc
mov al, 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov ebx, dword [esp + 4]
mov edx, dword [esp + 8]
jmp 0x479812
mov esi, dword [esi]
mov edx, 0x51ea94
cmp byte [esi + 0x51], 0
jne 0x4797f0
test ebx, ebx
mov esi, dword [esp + 0xc]
cmovns ecx, ebx
lea edx, [ecx + ecx*4]
shl edx, 2
add edx, dword [esi + 0x68]
mov dword [edx + 8], eax
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 4]
mov edx, dword [esp + 8]
xor eax, eax
cmp dword [edx + 0x38], 0
je 0x479985
mov dword [esp + 0x28], 0
cmp dword [edx + 0x38], 0
mov dword [esp + 0x3c], eax
je 0x479836
mov eax, dword [edx + 0x40]
xor esi, esi
test eax, eax
je 0x47987a
mov ecx, dword [esp + 0x24]
cmp dword [eax], ecx
je 0x479874
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x479829
jmp 0x479876
xor eax, eax
cmp byte [ebx + 0x12], 0
movsx edi, word [esp + 0x34]
movzx esi, byte [esp + 0x1b]
mov ecx, ebx
sete al
push dword [esp + 0x54]
push esi
push 0xb
push eax
push edi
mov edi, dword [ebp + 8]
push dword [esp + 0x34]
push dword [esp + 0x60]
push dword [esp + 0x5c]
push dword [esp + 0x70]
call fcn.004bb870
add esp, 0x24
jmp 0x479905
mov esi, eax
mov ebx, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, ebx
call fcn.004bb7b0
mov eax, dword [ebx + 0x74]
test eax, eax
cmove eax, ebx
cmp byte [esp + 0x1b], 1
mov byte [eax + 0x15], 1
jne 0x4798c3
mov ecx, dword [esp + 0xc]
mov edx, 0x74
push 0
push 0
push dword [esp + 0x18]
call fcn.0046c5a0
add esp, 0xc
mov eax, dword [esp + 4]
cmp dword [eax + 0x74], 0
jne 0x4798c3
mov eax, dword [esp + 4]
mov byte [eax + 0x14], 0
mov ebx, dword [esp + 0xc]
mov edx, 0xa
mov ecx, ebx
push dword [esp + 0x20]
push 1
push 0
call fcn.0046c5a0
add esp, 0xc
mov ecx, ebx
mov edx, eax
push 0xfffffffffffffff4
push esi
call fcn.0042b420
add esp, 8
mov eax, dword [ebx + 0x6c]
test eax, eax
jle 0x479909
mov ecx, dword [esp + 0xc]
lea eax, [eax + eax*4]
mov ecx, dword [ecx + 0x68]
mov word [ecx + eax*4 - 0x12], 2
mov ebx, dword [esp + 0xc]
cmp byte [esp + 0x3c], 0
mov eax, dword [esp + 0x2c]
je 0x47996c
test eax, eax
je 0x4799df
mov eax, dword [esp + 0x28]
mov ecx, ebx
mov edx, 5
inc eax
push 0
push eax
push dword [esp + 0x54]
call fcn.0046c5a0
add esp, 0xc
mov edx, dword [ebx]
mov eax, dword [ebx + 0x6c]
mov ebx, dword [esp + 0x24]
mov ecx, 0x51ea94
cmp byte [edx + 0x51], 0
jne 0x479964
mov edx, dword [esp + 0x28]
lea ecx, [eax - 1]
mov esi, dword [esp + 0xc]
test edx, edx
cmovns ecx, edx
lea ecx, [ecx + ecx*4]
shl ecx, 2
add ecx, dword [esi + 0x68]
mov dword [ecx + 8], eax
jmp 0x479a25
mov edx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.0048b2b0
mov ecx, dword [esp + 0x44]
call fcn.004a49a0
jmp 0x479a21
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
mov ecx, eax
sub ecx, dword [esp + 0x10]
cmp byte [edx + ecx], 0
je 0x479a9b
mov esi, dword [esp + 0xc]
mov edx, 0x1d
mov ecx, esi
push dword [esp + 0x20]
push dword [esp + 0x20]
push eax
call fcn.0046c5a0
add esp, 0xc
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x479aaa
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [esp + 0x28], 0
xor eax, eax
jmp 0x479812
mov ecx, ebx
mov esi, ebx
mov edx, 0xb
push 0
mov ebx, dword [esp + 0x2c]
push ebx
push 0
call fcn.0046c5a0
add esp, 0xc
mov edx, dword [esi]
mov eax, dword [esi + 0x6c]
mov ecx, 0x51ea94
cmp byte [edx + 0x51], 0
jne 0x479a1e
lea ecx, [eax - 1]
test ebx, ebx
mov edx, dword [esp + 0xc]
cmovns ecx, ebx
lea ecx, [ecx + ecx*4]
shl ecx, 2
add ecx, dword [edx + 0x68]
mov dword [ecx + 8], eax
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x38]
cmp byte [ecx + 0x12], 0
jne 0x479a48
cmp dword [ecx + 0x78], 0
jne 0x479a48
cmp dword [ecx + 0x70], 0
je 0x479a48
call fcn.004c0d70
mov eax, dword [esp + 0x38]
test eax, eax
je 0x47943c
mov esi, dword [esp + 0xc]
mov edx, 0x50
mov ecx, esi
push 0
push 1
push eax
call fcn.0046c5a0
add esp, 0xc
mov ecx, esi
mov edx, 1
call fcn.0046ca00
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x47943c
mov ecx, dword [esi + 0x74]
mov edx, str.rows_deleted
push 0
push 1
push 0xffffffffffffffff
call fcn.00425ff0
add esp, 0xc
jmp 0x47943c
xor eax, eax
mov dword [esp + 0x28], 0
jmp 0x4797c7
mov edx, dword [esp + 0xc]
movsx ecx, word [esp + 0x34]
mov edi, dword [ebp + 8]
lea eax, [eax + eax*4]
mov dword [esp + 0x28], 0
mov edx, dword [edx + 0x68]
mov byte [edx + eax*4 + 1], 0xfd
mov dword [edx + eax*4 + 0x10], ecx
xor eax, eax
jmp 0x4797c7