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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
mov ebx, ecx
mov dword [esp + 0x64], edx
xor eax, eax
mov dword [esp + 0x14], ebx
push esi
xor esi, esi
mov dword [esp + 0xc], eax
xorps xmm0, xmm0
mov eax, dword [ebx]
push edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x40], esi
movlpd qword [esp + 0x84], xmm0
mov dword [esp + 0x5c], eax
cmp dword [ebx + 0x24], esi
jne 0x4c69bf
call fcn.004c5400
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
je 0x4c69bf
push esi
push esi
push 0x80
mov edx, edi
mov ecx, ebx
call fcn.004edbc0
mov esi, eax
add esp, 0xc
mov al, byte [edi + 0x2b]
mov dword [esp + 0x8c], esi
mov byte [esp + 0x23], al
test esi, esi
jne 0x4c590c
push esi
push esi
mov edx, edi
mov ecx, ebx
call fcn.004cd8a0
add esp, 8
mov dword [esp + 0x30], esi
test eax, eax
je 0x4c5914
mov dword [esp + 0x30], 1
mov edx, edi
mov ecx, ebx
call fcn.004bfc50
test eax, eax
jne 0x4c69bd
test esi, esi
mov edx, edi
mov ecx, ebx
setne al
push eax
call fcn.004c5570
add esp, 4
test eax, eax
jne 0x4c69bd
mov ecx, dword [edi + 0x3c]
mov esi, 0xffff8000
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x38], esi
test ecx, ecx
je 0x4c596f
mov eax, dword [edx + 0x10]
xor esi, esi
add eax, 0xc
mov dword [esp + 0x38], esi
cmp dword [eax], ecx
je 0x4c596f
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x4c5963
mov dword [esp + 0x38], esi
mov eax, dword [edx + 0x10]
mov ecx, esi
shl ecx, 4
mov edx, 9
mov dword [esp + 0x14], ecx
push dword [eax + ecx]
mov ecx, ebx
push 0
push dword [edi]
call fcn.004ba730
add esp, 0xc
mov dword [esp + 0x18], eax
cmp eax, 1
je 0x4c69bd
mov ecx, dword [esp + 0x6c]
xor edx, edx
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x70], edx
mov dword [ecx + 0x34], eax
mov ecx, dword [ebx + 0x28]
inc ecx
mov dword [ebx + 0x28], ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x4c59d0
inc ecx
inc edx
mov dword [ebx + 0x28], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4c59c0
mov dword [esp + 0x70], edx
cmp byte [esp + 0x23], 2
jne 0x4c59f2
mov ecx, dword [ebx + 0xf8]
mov eax, dword [edi]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ecx
mov dword [ebx + 0xf8], eax
jmp 0x4c5a0b
mov eax, dword [esp + 0x88]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x80], eax
mov edi, dword [ebx + 8]
lea eax, [ebx + 0x74]
mov dword [esp + 0x48], eax
test edi, edi
je 0x4c5a23
mov dword [esp + 0x78], eax
mov dword [esp + 0x58], edi
jmp 0x4c5a52
cmp dword [eax], 0
jne 0x4c5a34
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x4c5a34
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.00491890
mov edi, eax
lea ecx, [ebx + 0x74]
mov dword [esp + 0x78], ecx
mov eax, ecx
mov dword [esp + 0x58], edi
test edi, edi
je 0x4c69a2
cmp byte [ebx + 0x12], 0
jne 0x4c5a5f
or dword [edi + 0xa0], 0x10
mov eax, dword [eax]
mov edx, ebx
test eax, eax
mov ecx, esi
cmovne edx, eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x3c], edx
mov ecx, dword [edx + 0x54]
test ecx, eax
jne 0x4c5a92
bts ecx, esi
mov dword [edx + 0x54], ecx
cmp esi, 1
jne 0x4c5a92
mov ecx, edx
call fcn.004c3d50
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x50]
bts eax, esi
mov dword [edx + 0x50], eax
mov eax, dword [esp + 0x30]
or byte [edx + 0x14], al
cmp byte [esp + 0x23], 2
jne 0x4c5ace
push dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, ebx
push 0
push 0
push dword [ebp + 8]
call fcn.004c5660
mov eax, dword [esp + 0x38]
add esp, 0x10
mov dword [esp + 0x74], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x90]
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0xa0], xmm0
movlpd qword [esp + 0xa8], xmm0
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], eax
call fcn.004a8360
test eax, eax
jne 0x4c69a2
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x24]
xor eax, eax
and ecx, 1
or eax, ecx
je 0x4c5b95
cmp byte [ebx + 0x12], 0
jne 0x4c5b95
cmp dword [ebx + 0x78], 0
jne 0x4c5b95
cmp byte [ebx + 0x95], 0
jne 0x4c5b95
inc dword [ebx + 0x2c]
mov ecx, dword [edi + 0x74]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x60], edx
cmp dword [edi + 0x78], ecx
jg 0x4c5b62
push 0
push edx
push 0
mov edx, 0x47
mov ecx, edi
call fcn.00491ae0
add esp, 0xc
jmp 0x4c5b95
mov esi, dword [esp + 0x38]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x18], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
jne 0x4c5d8e
cmp dword [ebp + 8], 0
jne 0x4c5d8e
test ecx, ecx
jne 0x4c5d8e
cmp byte [edx + 0x2b], 1
je 0x4c5d8e
cmp esi, 1
je 0x4c5bf3
mov eax, dword [ebx]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx + 4]
cmp byte [eax + 9], 0
je 0x4c5bf3
push dword [edx]
mov ecx, ebx
push 1
push dword [edx + 0x14]
mov edx, esi
call fcn.004ba7c0
mov edx, dword [esp + 0x38]
add esp, 0xc
test byte [edx + 0x1c], 0x80
jne 0x4c5cc6
mov eax, dword [edx]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x54], eax
or eax, 0xffffffff
test ecx, ecx
cmovne eax, ecx
mov ecx, dword [edx + 0x14]
mov edx, dword [edi + 0x74]
mov dword [esp + 0x70], eax
mov dword [esp + 0x4c], ecx
cmp dword [edi + 0x78], edx
jg 0x4c5c3f
push eax
push esi
push ecx
mov edx, 0x90
mov ecx, edi
call fcn.00491ae0
mov edx, eax
add esp, 0xc
mov eax, dword [esp + 0x58]
add eax, 0x70
jmp 0x4c5c75
mov ebx, dword [esp + 0x4c]
lea eax, [edx + 1]
mov dword [edi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x90
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [edi + 0x70]
mov ecx, dword [edi]
cmp byte [ecx + 0x57], 0
je 0x4c5c8f
mov edx, dword [esp + 0x54]
push edx
or edx, 0xffffffff
call fcn.004925f0
add esp, 4
jmp 0x4c5cc6
test edx, edx
jns 0x4c5c97
mov edx, dword [edi + 0x74]
dec edx
mov eax, dword [eax]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov edx, dword [esp + 0x54]
je 0x4c5cbb
push 0xffffffffffffffff
push edx
mov edx, eax
mov ecx, edi
call fcn.00492840
add esp, 8
jmp 0x4c5cc6
test edx, edx
je 0x4c5cc6
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xff
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 8]
test esi, esi
je 0x4c6970
mov ebx, dword [esp + 0x38]
nop dword [eax]
mov ecx, dword [edi + 0x74]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x4c], eax
cmp dword [edi + 0x78], ecx
jg 0x4c5d07
push 0
push ebx
push eax
mov edx, 0x90
mov ecx, edi
call fcn.00491ae0
add esp, 0xc
lea edx, [edi + 0x70]
jmp 0x4c5d3c
mov ebx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea edx, [edi + 0x70]
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x90
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
jne 0x4c5d7a
mov eax, dword [esp + 0x2c]
test byte [eax + 0x1c], 0x80
je 0x4c5d7a
mov eax, dword [edi]
mov ecx, dword [edi + 0x74]
cmp byte [eax + 0x57], 0
je 0x4c5d61
mov ecx, 0x5cdb84
jmp 0x4c5d6c
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx - 2]
lea ecx, [eax + ecx*4]
mov edx, dword [esp + 0x60]
or eax, 0xffffffff
test edx, edx
cmovne eax, edx
mov dword [ecx], eax
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4c5ce0
mov ebx, dword [esp + 0x1c]
jmp 0x4c6970
test byte [esp + 0xa8], 0x40
mov eax, 1
cmovne ecx, eax
xor eax, eax
test ecx, ecx
sete al
test byte [edx + 0x1c], 0x80
lea eax, [eax*8 + 0x14]
movzx eax, ax
mov dword [esp + 0x14], eax
jne 0x4c5e33
inc dword [ebx + 0x2c]
lea esi, [edi + 0x74]
mov ecx, dword [esi]
lea eax, [edi + 0x78]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x68], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], eax
cmp dword [eax], ecx
jg 0x4c5e00
push 0
push edx
push 0
mov edx, 0x4a
mov ecx, edi
call fcn.00491ae0
add esp, 0xc
jmp 0x4c5f36
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4c5f36
mov ecx, dword [edx + 8]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x4c5e54
nop
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x4c5e50
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x4c5e40
mov dword [esp + 0x30], ecx
mov eax, dword [ebx + 0x2c]
lea esi, [edi + 0x74]
movzx ecx, word [ecx + 0x32]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], esi
lea edx, [eax + 1]
mov dword [esp + 0x44], edx
movsx edx, cx
add eax, edx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x34], eax
inc eax
mov dword [ebx + 0x28], eax
lea eax, [edi + 0x78]
mov ecx, dword [esi]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
cmp dword [eax], ecx
jg 0x4c5ead
push 0
push edx
push dword [esp + 0x3c]
mov edx, 0x74
mov ecx, edi
call fcn.00491ae0
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x4c5edf
mov ebx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 8]
mov ecx, ebx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
call fcn.004c46e0
mov dword [esp + 0x58], eax
test eax, eax
je 0x4c5f36
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx]
cmp byte [ecx + 0x57], 0
je 0x4c5f15
push eax
mov edx, 0xfffffff7
call fcn.004925f0
add esp, 4
jmp 0x4c5f2b
mov eax, dword [edx + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x58]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
lea eax, [edi + 0x78]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov ecx, ebx
mov edx, dword [esp + 0x6c]
inc eax
push eax
push dword [esp + 0x18]
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.005057d0
mov edx, eax
add esp, 0x18
mov dword [esp + 0x58], edx
test edx, edx
je 0x4c69a2
mov eax, dword [edx + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x4c], eax
mov al, byte [edx + 0x32]
mov byte [esp + 0xf], al
mov byte [esp + 0x84], al
cmp al, 1
je 0x4c5f96
mov eax, dword [esp + 0x48]
mov ecx, ebx
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
test byte [edx + 0x34], 1
mov edx, dword [esp + 0x18]
je 0x4c5ff9
mov ecx, dword [esi]
cmp dword [edx], ecx
jg 0x4c5fc3
push 0
push 0
push dword [esp + 0x30]
mov edx, 0x8e
mov ecx, edi
call fcn.00491ae0
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x4c5ff9
mov ebx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x8e
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4c604f
mov ecx, dword [esi]
cmp dword [edx], ecx
jg 0x4c601d
push 0
push 1
push eax
mov edx, 0x55
mov ecx, edi
call fcn.00491ae0
add esp, 0xc
jmp 0x4c604f
mov edx, dword [esp + 0x60]
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x55
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x30], 0
je 0x4c60b5
mov eax, dword [esp + 0x38]
xor ecx, ecx
cwde
mov dword [esp + 0x48], ecx
test eax, eax
jle 0x4c60ab
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
nop dword [eax]
mov eax, dword [esp + 0x44]
mov edx, ebx
add eax, ecx
push eax
mov eax, dword [esi + 4]
movsx eax, word [eax + ecx*2]
mov ecx, edi
push eax
push dword [esp + 0x30]
call fcn.004ae6e0
mov ecx, dword [esp + 0x54]
add esp, 0xc
mov edx, dword [esp + 0x38]
inc ecx
movsx eax, dx
mov dword [esp + 0x48], ecx
cmp ecx, eax
jl 0x4c6070
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], edx
jmp 0x4c6118
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x18]
inc edx
mov dword [ebx + 0x2c], edx
mov ecx, dword [esi]
mov dword [esp + 0x14], edx
cmp dword [eax], ecx
jg 0x4c60e6
push 0
push edx
push dword [esp + 0x30]
mov edx, 0x86
mov ecx, edi
call fcn.00491ae0
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x4c6118
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x3c]
mov dword [eax + ecx*4], 0x86
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0xf], 0
lea ecx, [ebx + 0x2c]
je 0x4c61e6
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x5c]
movzx eax, ax
mov dword [esp + 0x48], eax
lea eax, [esi + 2]
cdq
push edx
push eax
call fcn.0046d640
mov ecx, eax
add esp, 8
mov dword [esp + 0x64], ecx
test ecx, ecx
jne 0x4c615f
mov ecx, dword [esp + 0x58]
call fcn.00506420
jmp 0x4c69a2
lea eax, [esi + 1]
push eax
push 1
push ecx
call fcn.0054b880
mov edx, dword [esp + 0x70]
add esp, 0xc
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
mov byte [esi + edx + 1], 0
test eax, eax
js 0x4c6189
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x4c]
test eax, eax
js 0x4c6197
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c61cc
mov ecx, dword [edi]
cmp byte [ecx + 0x57], 0
jne 0x4c61cc
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x70]
push dword [eax + edx*4 + 0x10]
lea esi, [eax + edx*4]
movsx edx, byte [esi + 1]
call fcn.004925f0
add esp, 4
mov word [esi], 0xb6
mov dword [esi + 0x10], 0
dec dword [ebx + 0x38]
lea edx, [edi + 0x70]
mov eax, dword [ebx + 0x38]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x10], edx
jmp 0x4c6340
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4c62ca
inc dword [ecx]
mov edx, eax
mov ecx, dword [ecx]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x38]
movsx ecx, cx
push ecx
push ecx
mov ecx, dword [ebx]
mov dword [esp + 0x50], 0
call fcn.004cede0
mov ecx, dword [esp + 0x40]
add esp, 4
mov edx, 0x60
push eax
push dword [esp + 0x1c]
movsx eax, cx
mov ecx, edi
push eax
push dword [esp + 0x54]
call fcn.00491e80
mov eax, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [esi]
mov dword [esp + 0x50], ecx
cmp dword [eax], ecx
jg 0x4c6267
push dword [esp + 0x44]
mov edx, 0x89
mov ecx, edi
push dword [esp + 0x18]
push dword [esp + 0x3c]
call fcn.00491ae0
add esp, 0xc
lea edx, [edi + 0x70]
mov ecx, eax
jmp 0x4c62a3
mov ebx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi], eax
lea edx, [edi + 0x70]
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x44]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x50]
mov eax, dword [edi]
mov dword [esp + 0x10], edx
cmp byte [eax + 0x57], 0
jne 0x4c6333
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
mov ebx, dword [esp + 0x38]
movsx edx, bx
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x4c632f
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov dword [esp + 0x48], 1
cmp dword [eax], ecx
jg 0x4c62fb
push 0
push edx
push dword [esp + 0x70]
mov edx, 0x9b
mov ecx, edi
call fcn.00491ae0
lea eax, [edi + 0x70]
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x4c6333
mov ebx, dword [esp + 0x68]
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
lea eax, [edi + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x9b
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
call fcn.00506420
mov edx, dword [esp + 0x10]
cmp byte [esp + 0x23], 2
je 0x4c6423
xor eax, eax
cmp byte [esp + 0xf], 2
mov dword [esp + 0x44], eax
jne 0x4c63b2
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov dword [esp + 0x44], ecx
cmp dword [eax], ecx
jg 0x4c6381
push 0
push 0
push 0
mov edx, 0x11
mov ecx, edi
call fcn.00491ae0
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x4c63b2
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
push dword [esp + 0x6c]
push dword [esp + 0x34]
push 8
push 0x70
call fcn.004d3a30
mov al, byte [esp + 0x27]
add esp, 0x18
cmp al, 2
jne 0x4c6427
mov eax, dword [esi]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x50], eax
lea edx, [eax - 1]
cmp ecx, edx
jne 0x4c63f3
mov dword [esi], edx
jmp 0x4c642f
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x4c6409
mov ecx, dword [esp + 0x50]
mov eax, 0x5cdb78
mov dword [eax + 8], ecx
jmp 0x4c642f
mov eax, dword [esp + 0x10]
test ecx, ecx
cmovns edx, ecx
mov eax, dword [eax]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
jmp 0x4c642f
mov al, byte [esp + 0xf]
test al, al
je 0x4c64e7
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp byte [eax + 0x2b], 1
je 0x4c667d
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x28]
cmp byte [eax + ecx], 0
je 0x4c667d
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov dword [esp + 0x50], ecx
cmp dword [eax], ecx
jg 0x4c6484
push dword [esp + 0x14]
mov edx, 0x1e
mov ecx, edi
push dword [esp + 0x58]
push dword [esp + 0x2c]
call fcn.00491ae0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, eax
jmp 0x4c64c1
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x24]
lea ecx, [ecx + ecx*4]
mov dword [esi], eax
mov eax, dword [edx]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x54]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x1e
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x50]
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne 0x4c6679
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 + 1], 0xfd
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x48]
cwde
mov dword [ecx + 0x10], eax
jmp 0x4c6679
cmp dword [esp + 0x30], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov dword [esp + 0x40], ecx
mov eax, dword [eax]
je 0x4c661d
cmp eax, ecx
jg 0x4c6523
push 0
push 0
push dword [esp + 0x3c]
mov edx, 0x26
mov ecx, edi
call fcn.00491ae0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x40], eax
jmp 0x4c6558
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x34]
lea ecx, [ecx + ecx*4]
mov dword [esi], eax
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x26
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi]
mov ebx, dword [esp + 0x18]
cmp byte [eax + 0x2b], 1
jne 0x4c65c4
cmp dword [ebx], ecx
mov ebx, dword [esp + 0x1c]
jg 0x4c658e
push dword [esp + 0x14]
mov edx, 0x5d
mov ecx, edi
push 0
push dword [esp + 0x3c]
call fcn.00491ae0
add esp, 0xc
jmp 0x4c6679
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4c6679
cmp dword [ebx], ecx
mov ebx, dword [esp + 0x1c]
jg 0x4c65ea
push 0
push dword [esp + 0x18]
mov edx, 0x85
mov ecx, edi
push dword [esp + 0x3c]
call fcn.00491ae0
add esp, 0xc
jmp 0x4c6679
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x85
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4c6679
cmp eax, ecx
jg 0x4c663c
push dword [esp + 0x14]
mov edx, 0x2d
mov ecx, edi
push 0
push dword [esp + 0x70]
call fcn.00491ae0
add esp, 0xc
jmp 0x4c6675
mov edx, dword [esp + 0x68]
lea eax, [ecx + 1]
mov dword [esi], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x2d
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
cmp byte [edx + 0x2b], 1
jne 0x4c67f7
mov esi, dword [edx + 0x34]
test esi, esi
je 0x4c66a1
mov eax, dword [esp + 0x5c]
cmp dword [esi], eax
je 0x4c66a1
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x4c6696
mov ecx, ebx
call fcn.004f5a30
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx]
test eax, eax
mov ecx, ebx
cmovne ecx, eax
cmp byte [esp + 0xf], 1
mov byte [ecx + 0x15], 1
jne 0x4c6729
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
cmp dword [eax], edx
jg 0x4c66e7
push 0
push 0
push dword [esp + 0x30]
mov edx, 0x79
mov ecx, edi
call fcn.00491ae0
add esp, 0xc
jmp 0x4c671c
lea eax, [edx + 1]
mov dword [ecx], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x78]
cmp dword [eax], 0
jne 0x4c6729
mov byte [ebx + 0x14], 0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov ecx, dword [edx]
mov dword [esp + 0x50], ecx
cmp dword [eax], ecx
jg 0x4c675a
push dword [esp + 0x14]
mov edx, 0xa
mov ecx, edi
push 1
push 0
call fcn.00491ae0
mov edx, dword [esp + 0x48]
add esp, 0xc
mov ecx, eax
jmp 0x4c6797
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edx], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x50]
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne 0x4c67c8
test ecx, ecx
jns 0x4c67a6
mov ecx, dword [edx]
dec ecx
mov edx, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4c67e7
push 0xfffffffffffffff4
push esi
mov edx, eax
mov ecx, edi
call fcn.00492840
add esp, 8
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
test eax, eax
jle 0x4c6830
lea ecx, [eax + eax*4]
mov eax, dword [edx]
mov edx, 2
mov word [eax + ecx*4 - 0x12], dx
jmp 0x4c6830
test esi, esi
je 0x4c67cc
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf4
inc dword [esi + 0xc]
jmp 0x4c67cc
push dword [esp + 0x4c]
cmp byte [ebx + 0x12], 0
push dword [esp + 0x88]
sete al
push 0xb
movzx eax, al
push eax
push dword [esp + 0x58]
push dword [esp + 0x28]
push dword [esp + 0x8c]
push ecx
push dword [esp + 0xac]
mov ecx, ebx
call fcn.004c6a00
add esp, 0x24
cmp byte [esp + 0xf], 0
je 0x4c6877
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x54]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4c6861
push edx
mov edx, edi
call fcn.00492300
mov ecx, dword [esp + 0x5c]
add esp, 4
call fcn.00506420
jmp 0x4c6970
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x58]
call fcn.00506420
jmp 0x4c6970
cmp dword [esp + 0x30], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov eax, dword [eax]
je 0x4c68ee
mov edx, dword [esp + 0x40]
inc edx
cmp eax, ecx
jg 0x4c68ae
push 0
push edx
push dword [esp + 0x3c]
mov edx, 5
mov ecx, edi
call fcn.00491ae0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4c6948
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x40]
lea ecx, [ecx + ecx*4]
mov dword [esi], eax
inc ebx
mov eax, dword [edx]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4c6948
cmp eax, ecx
jg 0x4c690f
push 0
push dword [esp + 0x44]
mov edx, 0xb
mov ecx, edi
push 0
call fcn.00491ae0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4c6948
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x40]
lea ecx, [ecx + ecx*4]
mov dword [esi], eax
mov eax, dword [edx]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
mov esi, dword [esi]
cmp byte [eax + 0x57], 0
je 0x4c6959
mov eax, 0x5cdb78
jmp 0x4c696d
mov ecx, dword [esp + 0x40]
lea eax, [esi - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov dword [eax + 8], esi
cmp byte [ebx + 0x12], 0
jne 0x4c6989
cmp dword [ebx + 0x78], 0
jne 0x4c6989
cmp dword [ebx + 0x70], 0
je 0x4c6989
mov ecx, ebx
call fcn.004cf4a0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4c69a2
push str.rows_deleted
mov edx, eax
mov ecx, edi
call fcn.004c5490
add esp, 4
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x64]
test eax, eax
je 0x4c69bf
mov ecx, dword [esp + 0x80]
mov dword [eax + 0xf8], ecx
jmp 0x4c69bf
xor esi, esi
mov ebx, dword [esp + 0x5c]
mov ecx, ebx
mov edx, dword [esp + 0x6c]
call fcn.004c3670
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c69de
mov edx, eax
mov ecx, ebx
call fcn.004a9ef0
test esi, esi
je 0x4c69eb
mov edx, esi
mov ecx, ebx
call fcn.0046d250
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret