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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x318
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [esp + 0x310], eax
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0x28]
add edi, dword [eax + esi*4]
lea ecx, [esp + 0x30]
mov dword [ecx], edi
mov edx, dword [eax + esi*4 + 4]
sub edx, dword [eax + esi*4]
mov dword [ecx + 4], edx
lea eax, [esp + 0x58]
push ecx
push eax
call fcn.0049a2dd
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c736f
mov ebx, 0xb
cmp dword [esp + 0x34], 0
jne 0x4c736f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + ecx]
cmp dword [esp + 0x64], eax
jne 0x4c736f
push ecx
push edx
mov esi, edx
call fcn.0049a6ba
add esp, 8
xor eax, dword [ebp + 0x20]
or eax, edx
jne 0x4c736f
mov ebx, esi
xor esi, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], esi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + edx*4]
shl eax, 3
add eax, dword [ebx + 8]
mov edx, dword [ecx + edx*4]
shl edx, 3
add edx, dword [ebx + 0x24]
mov dword [esp + 0x304], esi
mov dword [esp + 0x300], esi
mov dword [esp + 0x308], esi
mov ebx, dword [esp + 0x58]
lea ecx, [ebx - 1]
cmp ecx, 3
ja 0x4c7352
cmp byte [esp + 0x98], 1
jne 0x4c7352
mov ecx, dword [esp + 0x94]
test ecx, ecx
je 0x4c6c08
cmp ecx, 0x30101
je 0x4c6c08
cmp ecx, 0x21
jne 0x4c7352
cmp ebx, 4
je 0x4c727f
cmp ebx, 1
jne 0x4c7352
cmp dword [esp + 0x60], 1
jne 0x4c7352
cmp dword [esp + 0x68], 0
jne 0x4c7352
cmp dword [esp + 0x5c], 0
jne 0x4c7352
mov dword [esp], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov edx, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x1c]
add edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x18]
xor ebx, ebx
inc ebx
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
cmp ecx, 0x30100
mov dword [esp + 0x1c], ebx
jg 0x4c6c89
test ecx, ecx
je 0x4c6ca1
cmp ecx, 0x21
je 0x4c6ca1
jmp 0x4c7352
cmp ecx, 0x303011b
je 0x4c6d22
cmp ecx, 0x30101
jne 0x4c7352
xor ecx, ecx
cmp dword [esp], 4
jne 0x4c6d0f
mov eax, dword [esp + 0x20]
mov edx, dword [eax + ebx*8]
mov eax, dword [eax + ebx*8 + 4]
mov ecx, dword [ebx*4 + 0x69e2a8]
cmp ebx, 1
mov dword [esp + 4], edx
mov dword [esp], ecx
ja 0x4c6ed3
mov ebx, 2
test eax, eax
jne 0x4c7357
push edx
mov eax, dword [ebp + 0x24]
push eax
call dword [eax]
mov ecx, dword [esp + 0xc]
add esp, 8
mov edx, eax
test ecx, ecx
je 0x4c6cf4
test edx, edx
je 0x4c7357
xor eax, eax
inc eax
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + eax*4 + 0x48], edx
mov dword [esp + eax*4 + 0x300], ecx
jmp 0x4c6efd
mov eax, dword [ebp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x4c6f04
mov eax, dword [edx + 8]
mov dword [esp + 4], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
sub ecx, dword [esp + 4]
sbb eax, dword [esp + 0xc]
cmp ebx, 3
jne 0x4c7352
mov dword [esp + 0x308], ecx
mov ebx, 2
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4c7357
push ecx
mov eax, dword [ebp + 0x24]
push eax
mov dword [esp + 8], ecx
call dword [eax]
add esp, 8
mov dword [esp + 8], eax
mov dword [esp + 0x50], eax
cmp dword [esp], 0
je 0x4c6d86
cmp dword [esp + 8], 0
je 0x4c7357
mov eax, dword [esp + 4]
add eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0xc]
adc ecx, dword [ebp + 0x18]
push ecx
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0049ce10
add esp, 0xc
test eax, eax
jne 0x4c73cb
mov ecx, dword [esp]
mov edx, dword [esp + 0x10]
push dword [esp + 8]
push dword [ebp + 0x10]
call fcn.004c73f2
add esp, 8
test eax, eax
jne 0x4c73cb
mov eax, dword [esp + 0x300]
test al, 3
jne 0x4c73cf
mov ecx, dword [esp + 0x304]
test cl, 3
jne 0x4c73cf
mov ebx, dword [esp + 0x28]
lea edx, [eax + ebx]
add edx, ecx
cmp edx, dword [ebp + 0x20]
jne 0x4c73cf
mov edx, dword [esp + 0x24]
mov dword [esp + 0xc0], edx
add edx, ebx
mov dword [esp + 0xd0], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc4], edx
add eax, edx
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc8], eax
add ecx, eax
mov dword [esp + 0xd8], ecx
mov eax, dword [esp + 8]
mov dword [esp + 0xcc], eax
add eax, dword [esp]
mov dword [esp + 0xdc], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xe4], eax
lea ebx, [esp + 0xc0]
push ebx
call fcn.004eec14
add esp, 4
push ebx
call fcn.004eec46
add esp, 4
test eax, eax
jne 0x4c73db
mov eax, 0xfffffff0
mov ecx, dword [esp + eax + 0xd0]
cmp ecx, dword [esp + eax + 0xe0]
jne 0x4c73df
add eax, 4
jne 0x4c6e85
cmp dword [esp + 0xf8], 0
jne 0x4c73df
mov eax, dword [esp + 0xe0]
cmp eax, dword [esp + 0xe4]
jne 0x4c73df
cmp dword [esp + 0xe8], 0
je 0x4c7258
jmp 0x4c73cf
cmp ebx, 2
jne 0x4c7352
mov ebx, dword [ebp + 0x20]
sub ebx, edx
mov ecx, 0
sbb ecx, eax
jb 0x4c73e8
add ebx, dword [ebp + 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp]
mov eax, dword [edx + ecx*8]
mov dword [esp + 0xc], eax
mov eax, dword [edx + ecx*8 + 4]
mov ebx, dword [edx + ecx*8 + 0xc]
mov edx, dword [edx + ecx*8 + 8]
mov ecx, dword [esp + 0xc]
sub edx, ecx
mov dword [esp], edx
sbb ebx, eax
mov dword [esp + 8], ebx
add ecx, dword [ebp + 0x14]
adc eax, dword [ebp + 0x18]
push eax
push ecx
push dword [ebp + 0x10]
call fcn.0049ce10
add esp, 0xc
test eax, eax
jne 0x4c73cb
mov eax, dword [esp + 0x1c]
lea ecx, [eax + eax*2]
lea eax, [esp + ecx*4]
add eax, 0x90
mov edx, dword [eax + 4]
cmp edx, 0x30101
je 0x4c6f9d
cmp edx, 0x21
je 0x4c70e4
test edx, edx
jne 0x4c7352
mov eax, dword [esp + 4]
mov ecx, dword [esp]
xor eax, ecx
mov edx, dword [esp + 8]
or eax, edx
jne 0x4c73cf
push dword [esp + 0x10]
push dword [ebp + 0x10]
call fcn.004c73f2
add esp, 8
test eax, eax
je 0x4c7258
jmp 0x4c73cb
movzx ecx, byte [esp + ecx*4 + 0x99]
mov eax, dword [eax]
add eax, edi
xor edx, edx
mov dword [esp + 0xd4], edx
mov dword [esp + 0xd0], edx
push dword [ebp + 0x24]
push ecx
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.004f1196
add esp, 0x10
test eax, eax
jne 0x4c73cb
mov eax, dword [esp + 0x10]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 4]
mov dword [esp + 0xe8], eax
lea eax, [esp + 0xc0]
push eax
call fcn.004eef3f
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x44], 0
mov eax, 0x40000
mov ecx, dword [esp]
cmp ecx, eax
mov eax, dword [esp + 8]
sbb eax, 0
mov eax, 0x40000
mov dword [esp], ecx
cmovb eax, ecx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
push edx
call dword [edx]
add esp, 0xc
test eax, eax
jne 0x4c7209
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x38]
push eax
push 1
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x50]
push dword [esp + 0x14]
lea eax, [esp + 0xd4]
push eax
call fcn.004eef61
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x40], eax
sub dword [esp], eax
sbb dword [esp + 8], 0
test ebx, ebx
jne 0x4c723d
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0xe4]
cmp edx, 1
je 0x4c7227
cmp edx, 4
jne 0x4c70bc
mov edx, dword [esp]
or edx, dword [esp + 8]
jne 0x4c70bc
cmp ecx, dword [esp + 4]
je 0x4c723b
test eax, eax
jne 0x4c70ca
cmp dword [esp + 0xc], ecx
je 0x4c720d
push eax
mov ebx, dword [ebp + 0x10]
push ebx
call dword [ebx + 4]
mov edx, ebx
add esp, 8
test eax, eax
je 0x4c6fff
jmp 0x4c7209
mov cl, byte [esp + ecx*4 + 0x99]
mov eax, dword [eax]
xor edx, edx
mov dword [esp + 0xd4], edx
mov dword [esp + 0xd0], edx
cmp cl, 1
jne 0x4c73df
movzx eax, byte [edi + eax]
push dword [ebp + 0x24]
push eax
lea ebx, [esp + 0xc8]
push ebx
call fcn.004f1258
add esp, 0xc
test eax, eax
jne 0x4c73db
mov eax, dword [esp + 0x10]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 4]
mov dword [esp + 0xe8], eax
push ebx
call fcn.004f12d3
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x44], 0
mov eax, 0x40000
mov ecx, dword [esp]
cmp ecx, eax
mov eax, dword [esp + 8]
sbb eax, 0
mov eax, 0x40000
mov dword [esp], ecx
cmovb eax, ecx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
push edx
call dword [edx]
add esp, 0xc
test eax, eax
jne 0x4c7209
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x38]
push eax
push 1
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x50]
push dword [esp + 0x14]
lea eax, [esp + 0xd4]
push eax
call fcn.004f12fb
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x40], eax
mov edx, dword [esp]
sub edx, eax
sbb dword [esp + 8], 0
test ebx, ebx
jne 0x4c723d
cmp dword [esp + 0x38], 1
mov ecx, dword [ebp + 0x10]
je 0x4c7212
mov dword [esp], edx
test eax, eax
jne 0x4c71f5
mov edx, dword [esp + 0xc]
cmp edx, dword [esp + 0xe4]
je 0x4c720d
push eax
push ecx
mov ebx, ecx
call dword [ecx + 4]
mov edx, ebx
add esp, 8
test eax, eax
je 0x4c7148
mov ebx, eax
jmp 0x4c723d
xor ebx, ebx
inc ebx
jmp 0x4c723d
mov eax, dword [esp + 4]
xor eax, dword [esp + 0xe4]
or edx, dword [esp + 8]
xor ebx, ebx
or edx, eax
jmp 0x4c7236
xor ecx, dword [esp + 4]
mov eax, dword [esp]
or eax, dword [esp + 8]
xor ebx, ebx
or eax, ecx
setne bl
jmp 0x4c723d
xor ebx, ebx
push dword [ebp + 0x24]
lea eax, [esp + 0xc4]
push eax
call fcn.004f1108
add esp, 8
test ebx, ebx
jne 0x4c7357
mov ebx, dword [esp + 0x1c]
inc ebx
mov eax, dword [esp + 0x58]
mov dword [esp], eax
cmp ebx, eax
jae 0x4c73d4
lea ecx, [ebx + ebx*2]
mov ecx, dword [esp + ecx*4 + 0x94]
mov edx, dword [esp + 0x18]
jmp 0x4c6c6f
cmp byte [esp + 0xa4], 1
jne 0x4c7352
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xa0]
test edx, edx
je 0x4c72ad
cmp edx, 0x30101
je 0x4c72ad
cmp edx, 0x21
jne 0x4c7352
cmp byte [esp + 0xb0], 1
jne 0x4c7352
mov edx, dword [esp + 0xac]
test edx, edx
je 0x4c72d3
cmp edx, 0x30101
je 0x4c72d3
cmp edx, 0x21
jne 0x4c7352
cmp dword [esp + 0xb8], 0x303011b
jne 0x4c7352
cmp byte [esp + 0xbc], 4
jne 0x4c7352
cmp dword [esp + 0x60], 4
jne 0x4c7352
cmp dword [esp + 0x68], 2
jne 0x4c7352
cmp dword [esp + 0x6c], 6
jne 0x4c7352
cmp dword [esp + 0x70], 1
jne 0x4c7352
cmp dword [esp + 0x74], 0
jne 0x4c7352
cmp dword [esp + 0x5c], 3
jne 0x4c7352
cmp dword [esp + 0x78], 5
jne 0x4c7352
cmp dword [esp + 0x7c], 0
jne 0x4c7352
cmp dword [esp + 0x80], 4
jne 0x4c7352
cmp dword [esp + 0x84], 1
jne 0x4c7352
cmp dword [esp + 0x88], 3
jne 0x4c7352
cmp dword [esp + 0x8c], 2
mov edx, dword [esp + 0x20]
je 0x4c6c3b
mov ebx, 4
mov edi, dword [ebp + 0x24]
push dword [esp + esi*4 + 0x48]
push edi
call dword [edi + 4]
add esp, 8
inc esi
cmp esi, 3
jne 0x4c735a
test ebx, ebx
je 0x4c7387
mov ecx, dword [esp + 0x310]
xor ecx, ebp
call fcn.00517c1a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
xor ebx, ebx
test eax, eax
je 0x4c736f
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 3
movzx eax, byte [eax + ecx]
mov ecx, edx
and cl, 7
shl eax, cl
test al, 0x80
je 0x4c736f
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
call fcn.0049cd74
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
xor edx, edx
mov esi, dword [ebp + 0xc]
cmp eax, dword [ecx + esi*4]
setne dl
lea ebx, [edx + edx*2]
jmp 0x4c736f
mov ebx, eax
jmp 0x4c7357
xor ebx, ebx
inc ebx
jmp 0x4c7357
xor ebx, ebx
jmp 0x4c7357
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
jmp 0x4c7357
mov ebx, 5
jmp 0x4c7357