Function at 0x4c22fc
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebx]
inc eax
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
cmp esi, ecx
je 0x4c2fde
cmp byte [edi + 0x1e], cl
jne 0x4c2fde
cmp dword [ebx + 0x40], ecx
jne 0x4c2fde
push ecx
push ecx
push ecx
push 0x15
mov eax, ebx
call fcn.004b4b40
add esp, 0x10
test eax, eax
je 0x4c2355
xor eax, eax
inc eax
jmp 0x4c2fde
push 0x2c
lea eax, [esp + 0x74]
push 0
push eax
call fcn.004ee670
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp byte [eax], 4
ja 0x4c2385
push edi
mov edi, dword [esi + 0x18]
call fcn.004b1171
and dword [esi + 0x18], 0
mov eax, 0xfffe
and word [esi + 6], ax
pop ecx
push 0
push esi
push ebx
call fcn.004c1fdd
mov eax, dword [esi + 0x18]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 8]
add esp, 0xc
cmp dword [ebx + 0x40], 0
mov dword [esp + 0x48], eax
jne 0x4c2fb7
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x1e], 0
jne 0x4c2fb7
movzx eax, word [esi + 6]
shr eax, 2
and eax, 1
mov edi, ebx
mov dword [esp + 0x38], eax
call fcn.004c00e6
mov dword [esp + 0x24], eax
test eax, eax
je 0x4c2fb7
and dword [esp + 0x30], 0
jmp 0x4c24fe
mov eax, dword [esp + 0x48]
movsx ecx, word [eax]
cmp dword [esp + 0x30], ecx
jge 0x4c2508
mov ecx, dword [esp + 0x30]
imul ecx, ecx, 0x38
lea ebx, [ecx + eax + 8]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4c24fa
cmp byte [ebx + 0x14], 0
jne 0x4c24fa
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
mov ecx, esi
call fcn.004b04ca
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
add dword [eax + 0x1f8], ecx
mov eax, dword [esp + 0x20]
movzx edi, word [eax + 6]
shr edi, 2
and edi, 1
push edi
push dword [esp + 0x3c]
mov eax, esi
push dword [esp + 0x38]
push dword [ebp + 8]
call fcn.004c14b2
add esp, 0x10
test eax, eax
je 0x4c2474
test edi, edi
je 0x4c246d
or word [esi + 6], 4
mov dword [esp + 0x38], 1
or dword [esp + 0x30], 0xffffffff
jmp 0x4c24b9
mov eax, dword [ebx + 0x18]
and dword [esp + 0xb4], 0
and dword [esp + 0xb8], 0
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xac]
push eax
push dword [esp + 0x24]
mov byte [esp + 0xb4], 9
push dword [ebp + 8]
mov byte [esp + 0xb9], 0
call fcn.004c22fc
add esp, 0xc
mov byte [ebx + 0x14], 1
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x1e], 0
jne 0x4c2fb7
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
mov ecx, esi
call fcn.004b04ca
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
sub dword [eax + 0x1f8], ecx
mov eax, dword [esi + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x10]
cmp byte [eax], 4
jbe 0x4c24fa
mov eax, dword [esi + 0x18]
mov dword [esp + 0x34], eax
inc dword [esp + 0x30]
cmp dword [esi + 0x1c], 0
je 0x4c23e2
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x64], eax
movzx eax, word [esi + 6]
and eax, 1
cmp dword [esi + 0x1c], 0
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x10], eax
je 0x4c2586
cmp dword [esi + 0x24], 0
jne 0x4c2572
xor ecx, ecx
xor edx, edx
mov eax, esi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], esi
mov ecx, eax
mov eax, dword [eax + 0x1c]
inc edx
test eax, eax
jne 0x4c2540
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x58]
test eax, eax
je 0x4c2572
cmp edx, eax
jle 0x4c2572
mov edi, dword [ebp + 8]
push str.too_many_terms_in_compound_SELECT
call fcn.0049a6c7
pop ecx
jmp 0x4c234d
push dword [ebp + 0x10]
mov eax, esi
push dword [ebp + 8]
call fcn.004c0253
pop ecx
pop ecx
jmp 0x4c2fde
cmp dword [ecx], 1
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
jle 0x4c259d
mov edi, dword [ebp + 8]
push eax
call fcn.004bf418
pop ecx
jmp 0x4c259f
xor eax, eax
test eax, eax
jne 0x4c2fb7
mov al, byte [esi + 6]
and al, 5
cmp al, 1
jne 0x4c25d4
mov ebx, dword [esi]
push 0
push dword [esp + 0x2c]
call fcn.004b0cf4
mov dword [esi + 0x10], eax
mov dword [esp + 0x1c], eax
mov eax, 0xfffe
and word [esi + 6], ax
and dword [esp + 0x18], 0
pop ecx
pop ecx
mov edi, dword [esp + 0x34]
mov ebx, dword [ebp + 8]
test edi, edi
je 0x4c2613
push edi
push ebx
call fcn.004bf798
mov ecx, dword [ebx + 0x44]
push 0xfffffffffffffff0
push eax
mov dword [edi + 8], ecx
inc dword [ebx + 0x44]
mov eax, dword [edi]
push 0
inc eax
inc eax
push eax
push dword [edi + 8]
push 0x76
push dword [esp + 0x44]
call fcn.004a718d
add esp, 0x24
mov dword [esp + 0x20], eax
mov dword [esi + 0x40], eax
jmp 0x4c2618
or dword [esp + 0x20], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp byte [eax], 9
jne 0x4c2637
mov ecx, dword [esp + 0x5c]
push dword [ecx]
push dword [eax + 4]
mov eax, dword [esp + 0x2c]
push 0x76
call fcn.004a7176
add esp, 0xc
mov eax, dword [esp + 0x24]
call fcn.004a71bd
push eax
mov dword [esp + 0xac], eax
push esi
mov eax, ebx
call fcn.004c010c
xor edi, edi
pop ecx
pop ecx
cmp dword [esp + 0x10], edi
je 0x4c2689
mov edi, dword [ebx + 0x44]
lea eax, [edi + 1]
mov dword [ebx + 0x44], eax
push dword [esi]
mov dword [esp + 0x6c], edi
push ebx
call fcn.004bf798
push 0xfffffffffffffff0
push eax
push 0
push 0
push edi
push 0x76
push dword [esp + 0x44]
call fcn.004a718d
add esp, 0x24
xor edi, edi
jmp 0x4c268e
or dword [esp + 0x68], 0xffffffff
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x38], edi
jne 0x4c2708
cmp edx, edi
jne 0x4c270c
push edi
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x44]
push dword [esp + 0x54]
push ebx
call fcn.004c8870
mov ebx, eax
add esp, 0x14
cmp ebx, edi
je 0x4c2fb7
mov ecx, dword [esp + 0x20]
cmp ecx, edi
jl 0x4c26db
cmp dword [esp + 0x34], edi
jne 0x4c26db
mov eax, dword [esp + 0x24]
push 1
call fcn.004a74c5
or dword [esi + 0x40], 0xffffffff
pop ecx
push dword [ebx + 0x14]
mov eax, dword [ebp + 0x10]
push dword [ebx + 0x10]
push 0xffffffffffffffff
push dword [esp + 0x40]
push edi
push edi
push dword [esp + 0x74]
push esi
push dword [ebp + 8]
call fcn.004bf438
add esp, 0x24
push ebx
call fcn.004c8f5e
pop ecx
jmp 0x4c2f69
cmp edx, edi
je 0x4c2740
mov esi, dword [esi]
mov eax, dword [esi]
cmp eax, edi
mov esi, dword [esi + 0xc]
jle 0x4c2727
lea ecx, [esi + 0x10]
xor esi, esi
mov word [ecx], si
dec eax
add ecx, 0x14
cmp eax, edi
jg 0x4c271a
mov eax, dword [edx]
cmp eax, edi
mov ecx, dword [edx + 0xc]
jle 0x4c2740
add ecx, 0x10
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x14
cmp eax, edi
jg 0x4c2733
mov eax, dword [esp + 0x24]
call fcn.004a71bd
mov dword [esp + 0x44], eax
xor eax, eax
push 9
pop ecx
lea edi, [esp + 0xbc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x70]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xbc], ebx
test eax, eax
je 0x4c2789
mov eax, dword [eax]
inc eax
mov dword [esp + 0x7c], eax
jmp 0x4c278e
and dword [esp + 0x7c], 0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0xbc]
push eax
call fcn.004b31e1
mov esi, dword [esp + 0x38]
pop ecx
lea eax, [esp + 0xbc]
push eax
call fcn.004b31e1
xor ebx, ebx
pop ecx
cmp dword [esp + 0x64], ebx
je 0x4c27d3
push dword [esp + 0x64]
lea eax, [esp + 0xc0]
call fcn.004b31ba
pop ecx
cmp dword [esp + 0x94], ebx
mov eax, dword [esp + 0x84]
mov dword [esp + 0x8c], eax
jle 0x4c2816
xor edi, edi
mov eax, dword [esp + 0x90]
mov eax, dword [edi + eax]
mov esi, dword [eax + 0x10]
lea ecx, [esp + 0xbc]
push ecx
call fcn.004b31e1
inc ebx
add edi, 0x10
cmp ebx, dword [esp + 0x98]
pop ecx
jl 0x4c27ec
xor ebx, ebx
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x1e], 0
jne 0x4c2fb7
cmp dword [esp + 0x14], ebx
je 0x4c2d25
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
push dword [esp + 0x14]
mov dword [esp + 0x78], eax
inc eax
push edi
mov dword [edi + 0x44], eax
call fcn.004bf798
mov ebx, dword [esp + 0x2c]
push 0xfffffffffffffff0
push eax
push 0
push dword [esp + 0x90]
mov dword [esp + 0x78], eax
push dword [esp + 0x8c]
push 0x76
push ebx
call fcn.004a718d
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x48]
add esp, 0x24
inc eax
lea esi, [eax + 1]
mov dword [esp + 0x40], eax
lea eax, [esi + 1]
mov dword [esp + 0x58], eax
mov dword [edi + 0x48], eax
mov eax, ebx
mov dword [esp + 0xa4], esi
call fcn.004a71bd
inc dword [edi + 0x48]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x10], eax
mov eax, ebx
call fcn.004a71bd
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x48]
lea ecx, [eax + 1]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
add eax, edx
push 0
mov dword [edi + 0x48], eax
mov ecx, dword [ecx]
push esi
lea edx, [eax + 1]
add ecx, eax
push 0
push 0x30
mov eax, ebx
mov dword [esp + 0x48], edx
mov dword [edi + 0x48], ecx
call fcn.004a70f2
xor esi, esi
push esi
push dword [esp + 0x54]
mov eax, ebx
push esi
push 0x30
call fcn.004a70f2
push dword [esp + 0x40]
mov eax, ebx
push dword [esp + 0x34]
push 0x2f
call fcn.004a7176
add esp, 0x2c
push esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x44]
push dword [esp + 0x54]
push edi
call fcn.004c8870
add esp, 0x14
mov dword [esp + 0xa0], eax
cmp eax, esi
je 0x4c2fb7
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4c2946
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
and dword [esp + 0x3c], esi
mov dword [esp + 0x14], eax
jmp 0x4c2ab6
mov eax, dword [eax]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x18], eax
inc eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
test edx, edx
jle 0x4c2981
mov ecx, dword [esp + 0x80]
add ecx, 0xc
cmp dword [ecx], eax
jl 0x4c297b
inc dword [esp + 0x4c]
inc eax
add ecx, 0x18
dec edx
jne 0x4c2972
mov esi, dword [esp + 0x4c]
mov ecx, edi
call fcn.004b3256
mov esi, eax
mov eax, edi
call fcn.004b1bfa
mov eax, dword [esp + 0x14]
push 0
push esi
mov ecx, edi
call fcn.004b28e3
mov eax, dword [esp + 0x20]
add eax, esi
push eax
push dword [esp + 0x80]
mov eax, ebx
push 6
call fcn.004a7176
mov eax, dword [esp + 0x64]
and dword [esp + 0x44], 0
add esp, 0x14
cmp dword [esp + 0x84], 0
mov dword [esp + 0x2c], eax
jle 0x4c2a42
add eax, esi
and dword [esp + 0x18], 0
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x80]
add eax, ecx
mov ecx, dword [esp + 0x2c]
cmp dword [eax + 0xc], ecx
jl 0x4c2a2c
push 0
push dword [esp + 0x54]
push dword [eax + 4]
push dword [eax + 8]
push dword [eax]
mov eax, edi
call fcn.004b1b2e
add esp, 0x14
cmp dword [esp + 0x50], eax
je 0x4c2a24
push dword [esp + 0x50]
push eax
push 9
mov eax, ebx
call fcn.004a7176
add esp, 0xc
inc dword [esp + 0x2c]
inc dword [esp + 0x50]
inc dword [esp + 0x30]
mov eax, dword [esp + 0x30]
add dword [esp + 0x18], 0x18
cmp eax, dword [esp + 0x84]
jl 0x4c29df
mov eax, edi
call fcn.004b3207
push eax
push dword [esp + 0x50]
mov dword [esp + 0x20], eax
push esi
push 0x4f
mov eax, ebx
call fcn.004a70f2
push dword [esp + 0x28]
mov eax, ebx
push dword [esp + 0x88]
push 0x6c
call fcn.004a7176
mov edx, dword [esp + 0x34]
add esp, 0x1c
mov eax, edi
call fcn.004b3222
mov ecx, dword [esp + 0x4c]
push esi
call fcn.004b32a8
pop ecx
push dword [esp + 0xa0]
call fcn.004c8f5e
pop ecx
push dword [esp + 0x44]
mov eax, ebx
push dword [esp + 0x78]
push 0x12
call fcn.004a7176
add esp, 0xc
mov eax, edi
mov byte [esp + 0x71], 1
call fcn.004b1bfa
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x4c], eax
mov eax, edi
call fcn.004b1bfa
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp dword [ecx], eax
mov dword [esp + 0x2c], eax
jle 0x4c2b2c
mov dword [esp + 0x18], eax
cmp dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
je 0x4c2afb
add ecx, eax
push ecx
push eax
push dword [esp + 0x7c]
mov eax, ebx
push 3
call fcn.004a70f2
add esp, 0x10
jmp 0x4c2b17
lea esi, [eax + ecx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x70], 1
mov eax, dword [eax + 0xc]
push dword [eax + ecx]
call fcn.004b27a5
pop ecx
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x18], 0x14
cmp ecx, dword [eax]
jl 0x4c2ad6
mov esi, dword [esp + 0x14]
push 0xfffffffffffffffa
push dword [esp + 0x64]
push dword [esi]
push dword [esp + 0x44]
push dword [esp + 0xac]
push 0x5f
push ebx
call fcn.004a718d
mov eax, dword [ebx + 0xc]
add esp, 0x1c
mov dword [esp + 0x60], eax
inc eax
push eax
push 0
push eax
push 0x84
mov eax, ebx
call fcn.004a70f2
push dword [esp + 0xac]
mov ebx, dword [esi]
mov edi, dword [esp + 0x4c]
mov eax, dword [ebp + 8]
call fcn.004b1c3f
mov esi, dword [esp + 0x38]
add esp, 0x14
push dword [esp + 0x6c]
mov eax, esi
push dword [esp + 0x5c]
push 0x2f
call fcn.004a7176
add esp, 0xc
push dword [esp + 0x44]
mov edi, 0x81
push dword [esp + 0xa8]
mov eax, esi
push edi
call fcn.004a7176
add esp, 0xc
push dword [esp + 0x20]
mov eax, esi
push dword [esp + 0x14]
push 0x2f
call fcn.004a7176
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x6c]
add esp, 0xc
mov ecx, esi
call fcn.004a7417
lea eax, [esp + 0x70]
push eax
push dword [ebp + 8]
call fcn.004c2170
push 0
push dword [esp + 0x4c]
mov eax, esi
push 1
push 0x30
call fcn.004a70f2
add esp, 0x18
cmp dword [esp + 0x3c], 0
je 0x4c2c11
push dword [esp + 0x4c]
mov eax, esi
push dword [esp + 0x78]
push 0x6a
call fcn.004a7176
add esp, 0xc
jmp 0x4c2c2c
push dword [esp + 0xa0]
call fcn.004c8f5e
pop ecx
mov ecx, dword [esp + 0x54]
push 1
mov eax, esi
call fcn.004a74c5
pop ecx
push dword [esp + 0x6c]
mov eax, esi
push dword [esp + 0x5c]
push 0x2f
call fcn.004a7176
add esp, 0xc
xor ebx, ebx
push ebx
push dword [esp + 0x48]
mov eax, esi
push ebx
push 0x60
call fcn.004a70f2
mov eax, dword [esi + 0xc]
push ebx
push dword [esp + 0xb8]
mov dword [esp + 0x6c], eax
push 1
push 0x30
mov eax, esi
call fcn.004a70f2
push dword [esp + 0x78]
mov eax, esi
push 0x19
call fcn.004a715f
mov edx, dword [esp + 0x94]
mov ecx, esi
call fcn.004a720b
mov ebx, dword [esi + 0xc]
lea eax, [ebx + 2]
push eax
push dword [esp + 0x6c]
mov eax, esi
push edi
call fcn.004a7176
add esp, 0x34
push dword [esp + 0x58]
mov eax, esi
push 0x19
call fcn.004a715f
mov eax, dword [ebp + 8]
lea edi, [esp + 0x78]
call fcn.004c2125
push 8
inc ebx
push ebx
push dword [esp + 0x74]
push dword [ebp + 8]
call fcn.004b2b93
push dword [esp + 0x6c]
mov eax, dword [ebp + 0xc]
push ebx
push dword [esp + 0x88]
push dword [esp + 0x58]
push 0
push 0
push dword [eax]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x10]
call fcn.004bf438
add esp, 0x3c
push dword [esp + 0x58]
mov eax, esi
push 0x19
call fcn.004a715f
mov edx, dword [esp + 0x28]
mov ecx, esi
call fcn.004a720b
push dword [ebp + 8]
mov ebx, edi
call fcn.004c2062
add esp, 0xc
push dword [esp + 0x10]
mov eax, esi
push 0x19
call fcn.004a715f
pop ecx
jmp 0x4c2f58
lea eax, [esp + 0x70]
push eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x44], ebx
call fcn.004c19ce
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4c2e30
mov ebx, dword [ebp + 8]
mov esi, dword [edi + 0x44]
mov ecx, dword [ebx]
call fcn.004be812
and dword [esp + 0x10], 0
and dword [esp + 0x54], 0
mov esi, eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x20], eax
inc eax
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x60], eax
mov eax, ebx
mov dword [esp + 0x68], esi
call fcn.004b7d4f
push dword [edi + 4]
mov ebx, dword [edi + 0x18]
push 0
push esi
mov esi, dword [ebp + 8]
call fcn.004b4bbf
mov eax, dword [edi + 0x14]
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
je 0x4c2dcd
mov ecx, dword [esp + 0x54]
cmp ecx, ebx
je 0x4c2da4
mov edx, dword [eax + 4]
cmp edx, dword [ecx + 4]
jge 0x4c2da6
mov ecx, eax
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x4c2d98
cmp ecx, ebx
je 0x4c2dcd
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 0xc]
jge 0x4c2dcd
mov esi, dword [ecx + 0x14]
push ecx
push dword [ebp + 8]
call fcn.004b7fe2
pop ecx
pop ecx
mov dword [esp + 0x10], eax
jmp 0x4c2dd1
mov esi, dword [esp + 0x60]
push dword [esp + 0x68]
push esi
push dword [esp + 0x28]
mov esi, dword [esp + 0x30]
push 0xd
mov eax, esi
call fcn.004a70f2
add esp, 0x10
cmp dword [esp + 0x10], ebx
je 0x4c2e02
push 0xfffffffffffffff0
push dword [esp + 0x14]
or eax, 0xffffffff
push esi
call fcn.004a7504
add esp, 0xc
mov eax, dword [esp + 0x90]
push dword [eax + 8]
mov eax, esi
push dword [esp + 0x24]
push 0x6b
call fcn.004a7176
add esp, 0xc
push dword [esp + 0x20]
mov eax, esi
push 0x21
call fcn.004a715f
pop ecx
pop ecx
jmp 0x4c2f10
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
call fcn.004c195e
mov byte [esp + 0x1f], al
test al, al
je 0x4c2e87
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [esp + 0x28]
mov ebx, dword [eax + 0x10]
push 0
push esi
call fcn.004b0cf4
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], eax
test eax, eax
je 0x4c2e87
cmp byte [esi + 0x1e], 0
jne 0x4c2e87
cmp byte [esp + 0x1f], 1
mov edx, dword [eax + 0xc]
setne cl
mov byte [edx + 0xc], cl
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov byte [eax], 0x97
mov esi, dword [ebp + 8]
push esi
lea ebx, [esp + 0x74]
call fcn.004c2062
movzx ax, byte [esp + 0x23]
pop ecx
movzx eax, ax
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x44]
push dword [esp + 0x54]
push esi
call fcn.004c8870
mov edi, eax
xor ebx, ebx
add esp, 0x14
cmp edi, ebx
jne 0x4c2ed0
push dword [esp + 0x28]
mov edi, dword [esp + 0x44]
call fcn.004b1171
pop ecx
jmp 0x4c2fb7
lea eax, [esp + 0x70]
push eax
push esi
call fcn.004c2170
pop ecx
pop ecx
cmp dword [esp + 0x10], ebx
jne 0x4c2efc
cmp byte [esp + 0x1f], bl
je 0x4c2efc
mov eax, dword [esp + 0x24]
push ebx
push dword [edi + 0x14]
push ebx
push 0x60
call fcn.004a70f2
add esp, 0x10
push edi
call fcn.004c8f5e
pop ecx
lea edi, [esp + 0x70]
mov eax, esi
call fcn.004c2125
xor ebx, ebx
push 8
push dword [esp + 0x48]
mov dword [esp + 0x3c], ebx
push dword [esp + 0x6c]
push dword [ebp + 8]
call fcn.004b2b93
push dword [esp + 0x54]
mov eax, dword [ebp + 0xc]
push dword [esp + 0x58]
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push dword [eax]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x10]
call fcn.004bf438
mov edi, dword [esp + 0x74]
add esp, 0x34
push dword [esp + 0x28]
call fcn.004b1171
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x48]
pop ecx
mov ecx, esi
call fcn.004a720b
mov esi, dword [ebp + 0xc]
xor edi, edi
cmp dword [esp + 0x34], edi
je 0x4c2f88
mov eax, dword [esp + 0x5c]
push dword [eax]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push dword [ebp + 8]
call fcn.004bf831
add esp, 0xc
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x24]
call fcn.004a720b
mov eax, dword [ebp + 0x10]
cmp byte [eax], 5
mov dword [esp + 0x18], edi
jne 0x4c2fb7
push dword [esp + 0x5c]
push dword [esp + 0x4c]
push dword [ebp + 8]
call fcn.004bfc7a
add esp, 0xc
push dword [esp + 0x80]
push dword [esp + 0x2c]
call fcn.00498e12
push dword [esp + 0x98]
push dword [esp + 0x34]
call fcn.00498e12
mov eax, dword [esp + 0x28]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret