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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [ebp + 0x44]
push ebx
push esi
push edi
xor edi, edi
mov ebx, 1
mov dword [eax], edi
cmp dword [ecx + 0x44], ebx
mov dword [esp + 0x4c], ecx
jne 0xc4f8ab
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x30]
push ecx
push esi
call fcn.00c5dec0
add esp, 8
test eax, eax
jne 0xc4e563
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
mov dword [eax], 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov eax, dword [ebp + 0x2c]
cmp eax, edi
je 0xc4e5a3
cmp eax, 2
je 0xc4e599
cmp eax, ebx
je 0xc4e599
cmp eax, 3
je 0xc4e599
cmp eax, 4
je 0xc4e5a3
cmp eax, 5
je 0xc4e599
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
mov dword [edx], 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
cmp eax, 4
je 0xc4e5a3
cmp eax, 5
jne 0xc4e5be
test ebx, esi
je 0xc4e5be
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov esi, dword [ebp + 0x18]
lea edx, [esp + 0x100]
push edx
mov ecx, esi
call fcn.00c5d500
mov eax, dword [ebp + 0x14]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0xc4e5e3
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea eax, [esp + 0x28]
push 4
push eax
call fcn.00c30f10
lea ecx, [esp + 0x34]
push 4
push ecx
call fcn.00c30f10
lea edx, [esp + 0x2c]
push 4
push edx
mov dword [esp + 0x60], edi
call fcn.00c30f10
lea eax, [esp + 0x38]
push 4
push eax
call fcn.00c30f10
lea ecx, [esp + 0x34]
push 4
push ecx
call fcn.00c30f10
add esp, 0x28
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], 0xffffffff
call fcn.00c70320
lea ecx, [esp + 0x30]
call fcn.00c70320
lea ecx, [esp + 0x60]
call fcn.00c5d880
lea esp, [esp]
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.00c5d770
test eax, eax
je 0xc4eddb
cmp dword [esp + 0x60], edi
je 0xc4e6ae
lea eax, [esp + 0x64]
push eax
call fcn.00c5df90
add esp, 4
test eax, eax
je 0xc4e737
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ecx
mov dword [esp + 0x58], 0x10
push edx
lea ecx, [esp + 0x38]
mov ebx, 1
call fcn.00c703c0
push eax
lea ecx, [esp + 0x3c]
call fcn.00c70420
jmp 0xc4e776
lea eax, [esp + 0x64]
push eax
call fcn.00c5d910
add esp, 4
test eax, eax
je 0xc4ec46
mov eax, dword [esp + 0x6c]
cmp eax, 1
jne 0xc4e73b
mov esi, dword [0x100cca70]
lea ecx, [esp + 0x120]
push ecx
mov ecx, dword [ebp + 0x18]
push edi
push 0x40
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x120]
push eax
add esi, 0x36c
call fcn.00c5d690
push eax
push edi
lea ecx, [esp + 0xe4]
call fcn.00c70110
mov ecx, eax
call fcn.00ca07c0
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
test eax, eax
jne 0xc4e737
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x64]
push edx
mov dword [esp + 0x58], ecx
push eax
jmp 0xc4e691
xor ebx, ebx
jmp 0xc4e776
cmp eax, edi
jne 0xc4edc8
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x70]
push ecx
push edx
lea eax, [esp + 0x10c]
push eax
mov ecx, esi
call fcn.00c5d560
push eax
call fcn.00c5e010
add esp, 0x14
mov ebx, eax
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00c30f10
add esp, 8
cmp ebx, edi
je 0xc4e8e0
mov eax, dword [esp + 0x6c]
sub eax, edi
je 0xc4e835
sub eax, 1
jne 0xc4ecf8
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x34]
call fcn.00c70450
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x3c]
call fcn.00c70450
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 0x48]
mov edx, dword [ecx]
mov edx, dword [edx + 0xac]
push 3
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x5c]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0xc4e802
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0xc4e818
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
cmp ecx, edi
je 0xc4ebf3
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov dword [esp + 0x50], edi
jmp 0xc4ebef
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x34]
call fcn.00c70450
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x3c]
call fcn.00c70450
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 0x48]
mov edx, dword [ecx]
and eax, 0x10
mov edx, dword [edx + 0xac]
neg al
sbb eax, eax
neg eax
add eax, 1
push eax
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x9c]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0xc4e8a7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0xc4e8bd
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x90]
cmp ecx, edi
je 0xc4ebf3
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov dword [esp + 0x90], edi
jmp 0xc4ebef
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov esi, 1
cmp eax, esi
jne 0xc4e8fe
cmp dword [esp + 0x6c], edi
je 0xc4ed11
lea ecx, [esp + 0xa0]
call fcn.00c5d880
lea ecx, [esp + 0xa0]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00c5d770
test eax, eax
je 0xc4e95e
mov eax, dword [esp + 0xac]
cmp eax, edi
je 0xc4ed2a
cmp eax, esi
jne 0xc4e95e
mov eax, dword [ebp + 0x2c]
cmp eax, esi
je 0xc4ed46
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x48], esi
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ecx
jmp 0xc4e961
mov eax, dword [ebp + 0x2c]
cmp eax, esi
je 0xc4ed7f
cmp eax, 4
je 0xc4ed7f
mov eax, dword [esp + 0x6c]
cmp eax, edi
jne 0xc4ea48
mov esi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x24]
lea edx, [esp + 0x1c]
push edx
and esi, 1
push esi
push eax
call fcn.00c5dea0
add esp, 8
push eax
push esi
call fcn.00c69a80
add esp, 0xc
cmp eax, edi
jne 0xc4ed62
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 0x48]
mov edx, dword [ecx]
mov edx, dword [edx + 0xa8]
push eax
xor eax, eax
cmp esi, edi
setne al
add eax, 1
push eax
lea eax, [esp + 0x6c]
push eax
push eax
lea eax, [esp + 0x88]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0xc4e9ed
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0xc4ea03
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
cmp ecx, edi
je 0xc4ea1b
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], edi
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0xc4ea2f
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0xc4ebf3
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
jmp 0xc4ebef
cmp eax, esi
jne 0xc4ebef
lea eax, [esp + 0x20]
push eax
call fcn.00c6b080
add esp, 4
cmp eax, edi
jne 0xc4ed62
mov ecx, dword [esp + 0x68]
push ecx
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x10c]
push edx
call fcn.00c5d560
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x78]
call fcn.00c70180
mov esi, dword [0x100cca70]
push edi
push 3
lea ecx, [esp + 0x120]
mov dword [esp + 0x64], edi
add esi, 0x15c
call fcn.00c700e0
mov ecx, eax
call fcn.00ca07c0
push eax
push edi
push 0x40
lea ecx, [esp + 0x84]
call fcn.00ca07c0
push eax
push edi
lea ecx, [esp + 0xec]
call fcn.00c70110
mov ecx, eax
call fcn.00ca07c0
mov edx, dword [esi]
push eax
push 0x180
lea eax, [esp + 0x70]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
test eax, eax
jne 0xc4eb84
mov esi, dword [0x100cca70]
push 4
push 0x28
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0xc4]
add esi, 0x27c
call fcn.00c700e0
mov ecx, eax
call fcn.00ca07c0
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esi]
push edx
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
call eax
test eax, eax
jne 0xc4eb84
test dword [esp + 0xf0], 0x20
jne 0xc4eb84
mov esi, dword [0x100cca70]
or dword [esp + 0xf0], 0x20
push 4
push 0x28
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0xa0]
add esi, 0x24c
call fcn.00c700e0
mov ecx, eax
call fcn.00ca07c0
mov ecx, dword [esp + 0x68]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
push ecx
mov ecx, esi
call eax
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 0x48]
mov edx, dword [ecx]
mov edx, dword [edx + 0xa4]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x48]
push eax
call edx
push eax
lea ecx, [esp + 0x14]
call fcn.00c3bf90
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0xc4ebc2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0xc4ebd2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0xc4ebe6
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea ecx, [esp + 0x5c]
call fcn.00c38970
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.00c3bef0
cmp esi, edi
je 0xc4ec0e
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0xc4ec36
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0xc4ec36
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
cmp ebx, edi
je 0xc4eddb
mov esi, dword [ebp + 0x18]
jmp 0xc4e650
cmp dword [0x100ccb64], edi
je 0xc4eca2
push 0x100b0e60
push 0x100bc84c
lea eax, [esp + 0x6c]
push eax
push 0x100bc830
push 0x100bcaa8
lea ecx, [esp + 0xa8]
call fcn.00c2c470
mov ecx, eax
call fcn.00c2b3c0
mov ecx, eax
call fcn.00c2b3c0
mov ecx, eax
call fcn.00c2c4b0
mov ecx, eax
call fcn.00c2b3c0
mov ecx, eax
call fcn.00c2b3c0
lea ecx, [esp + 0x94]
call fcn.00c2b280
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
mov dword [edx], 0xc000003b
lea ecx, [esp + 0x30]
call fcn.00c70440
lea ecx, [esp + 0x38]
call fcn.00c70440
lea ecx, [esp + 0x14]
call fcn.00c66940
lea ecx, [esp + 0x20]
call fcn.00c66940
lea ecx, [esp + 0x1c]
call fcn.00c66940
lea ecx, [esp + 0x28]
call fcn.00c715c0
lea ecx, [esp + 0x18]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000229
lea ecx, [esp + 0x10]
call fcn.00c66940
jmp 0xc4ecb0
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x10]
mov dword [eax], 0xc000003a
call fcn.00c66940
jmp 0xc4ecb0
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x10]
mov dword [edx], 0xc000003a
call fcn.00c66940
jmp 0xc4ecb0
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000034
lea ecx, [esp + 0x10]
call fcn.00c66940
jmp 0xc4ecb0
mov edx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
and eax, 0xefffffff
mov dword [edx], edi
mov dword [ecx], eax
lea ecx, [esp + 0x10]
call fcn.00c66940
jmp 0xc4ecb0
test dword [ebp + 0x30], esi
je 0xc4edac
mov ecx, dword [ebp + 0x18]
call fcn.00c5d6e0
test eax, eax
je 0xc4edac
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x10]
mov dword [eax], 0xc0000103
call fcn.00c66940
jmp 0xc4ecb0
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x10]
mov dword [edx], 0xc0000034
call fcn.00c66940
jmp 0xc4ecb0
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000229
jmp 0xc4ecb0
cmp ebx, edi
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x24], edi
mov dword [esp + 0x5c], 0xffffffff
je 0xc4f443
mov edx, dword [ebp + 0x2c]
cmp edx, 2
jne 0xc4ee77
mov esi, dword [ebp + 0x30]
test esi, 1
je 0xc4ee2d
mov ecx, dword [ebp + 0x18]
call fcn.00c5d6e0
test eax, eax
je 0xc4ee2d
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x24]
mov dword [eax], 0xc0000103
call fcn.00c389b0
jmp 0xc4ecb0
test esi, 0x40
je 0xc4ee5b
test dword [esp + 0x54], 0x10
je 0xc4ee5b
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x24]
mov dword [edx], 0xc00000ba
call fcn.00c389b0
jmp 0xc4ecb0
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000035
lea ecx, [esp + 0x24]
call fcn.00c389b0
jmp 0xc4ecb0
cmp edx, 1
je 0xc4f110
cmp edx, 3
je 0xc4f110
cmp edx, edi
je 0xc4ee9b
cmp edx, 4
je 0xc4ee9b
cmp edx, 5
jne 0xc4f44b
mov esi, dword [ebp + 0x30]
mov ecx, dword [esp + 0x54]
mov eax, esi
and eax, 0x40
je 0xc4eecd
test ecx, 0x10
je 0xc4eecd
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x24]
mov dword [eax], 0xc00000ba
call fcn.00c389b0
jmp 0xc4ecb0
cmp eax, edi
jne 0xc4eefd
test esi, 1
jne 0xc4eefd
test ecx, 0x10
je 0xc4eefd
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x24]
mov dword [edx], 0xc0000035
call fcn.00c389b0
jmp 0xc4ecb0
cmp edx, edi
jne 0xc4ef25
test ecx, 0x10
je 0xc4ef25
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc000000d
lea ecx, [esp + 0x24]
call fcn.00c389b0
jmp 0xc4ecb0
test esi, 1
je 0xc4ef55
mov ecx, dword [ebp + 0x18]
call fcn.00c5d6e0
test eax, eax
je 0xc4ef55
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x24]
mov dword [eax], 0xc000000d
call fcn.00c389b0
jmp 0xc4ecb0
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
cmp eax, 3
jne 0xc4efdd
lea ecx, [esp + 0x20]
push ecx
call fcn.00c6b080
add esp, 4
cmp eax, edi
jne 0xc4f25c
mov eax, dword [esi]
lea edx, [esp + 0x70]
push edx
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.00c70450
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x48]
mov eax, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0xa4]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x48]
push eax
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.00c3bf90
lea ecx, [esp + 0x40]
call fcn.00c66940
lea ecx, [esp + 0x80]
call fcn.00c70440
jmp 0xc4f082
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
xor ecx, ecx
cmp eax, 2
mov eax, dword [ebp + 0x24]
sete cl
lea edx, [esp + 0x1c]
push edx
mov esi, ecx
push esi
push eax
call fcn.00c5dea0
add esp, 8
push eax
push esi
call fcn.00c69a80
add esp, 0xc
cmp eax, edi
jne 0xc4f30f
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x34]
call fcn.00c70450
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00c70450
mov edx, dword [esp + 0x4c]
mov edi, dword [edx + 0x48]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov esi, dword [edi]
push eax
mov eax, dword [edx + 0x28]
add esi, 0xa8
call eax
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x8c]
push edx
mov edx, dword [esi]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.00c3bf90
lea ecx, [esp + 0x40]
call fcn.00c66940
xor edi, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
lea edx, [esp + 0x40]
push edx
call eax
xor ecx, ecx
cmp dword [eax], edi
setne cl
mov esi, ecx
lea ecx, [esp + 0x40]
call fcn.00c66940
cmp esi, edi
je 0xc4f0e2
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x40]
push eax
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x48]
push edx
call eax
lea ecx, [esp + 0x40]
call fcn.00c66940
mov eax, dword [ebp + 0x2c]
neg eax
sbb eax, eax
and eax, 3
mov dword [esp + 0x5c], eax
jmp 0xc4f44b
lea ecx, [esp + 0x28]
call fcn.00c713c0
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00c3bef0
mov eax, dword [ebp + 0x2c]
neg eax
sbb eax, eax
and eax, 3
mov dword [esp + 0x5c], eax
jmp 0xc4f44b
mov eax, dword [ebp + 0xc]
push eax
call fcn.00c5dd70
add esp, 4
test eax, eax
je 0xc4f42c
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0xc4f148
test al, 0x10
je 0xc4f148
mov ecx, dword [ebp + 0x40]
mov dword [ecx], 1
lea ecx, [esp + 0x24]
call fcn.00c389b0
jmp 0xc4ecb0
mov edx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x30]
mov esi, dword [0x100cca70]
push edx
mov edx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x20]
push edx
push ebx
push eax
push ecx
lea ecx, [esp + 0xb0]
add esi, 0x18c
call fcn.00c700e0
mov ecx, eax
call fcn.00ca07c0
mov edx, dword [ebp + 0x10]
push eax
push edx
mov edx, dword [esi]
push 0x100001
lea eax, [esp + 0x4c]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
cmp eax, edi
jne 0xc4f414
cmp dword [esp + 0x54], 0xffffffff
jne 0xc4f235
lea ecx, [esp + 0x40]
call fcn.00c70320
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x50]
push edx
call fcn.00c43360
cmp eax, edi
je 0xc4f1ee
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x40]
mov dword [edx], eax
call fcn.00c70440
lea ecx, [esp + 0x24]
call fcn.00c389b0
jmp 0xc4ecb0
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x44]
call fcn.00ca07c0
push eax
call fcn.00c5dc60
add esp, 8
cmp eax, edi
jne 0xc4f1cd
test byte [esp + 0x54], 0x10
lea ecx, [esp + 0x40]
je 0xc4f230
mov eax, dword [ebp + 0x40]
mov dword [eax], 1
call fcn.00c70440
lea ecx, [esp + 0x24]
call fcn.00c389b0
jmp 0xc4ecb0
call fcn.00c70440
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
cmp eax, 3
jne 0xc4f2da
lea ecx, [esp + 0x20]
push ecx
call fcn.00c6b080
add esp, 4
cmp eax, edi
je 0xc4f279
mov edx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
and eax, 0xefffffff
mov dword [edx], edi
mov dword [ecx], eax
lea ecx, [esp + 0x24]
call fcn.00c389b0
jmp 0xc4ecb0
mov eax, dword [esi]
lea edx, [esp + 0x70]
push edx
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.00c70450
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x48]
mov eax, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0xa4]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x48]
push eax
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.00c3bf90
lea ecx, [esp + 0x40]
call fcn.00c66940
lea ecx, [esp + 0x80]
call fcn.00c70440
jmp 0xc4f398
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
xor ecx, ecx
cmp eax, 2
mov eax, dword [ebp + 0x24]
sete cl
lea edx, [esp + 0x1c]
push edx
mov esi, ecx
push esi
push eax
call fcn.00c5dea0
add esp, 8
push eax
push esi
call fcn.00c69a80
add esp, 0xc
cmp eax, edi
je 0xc4f32c
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
and eax, 0xefffffff
lea ecx, [esp + 0x24]
mov dword [edx], eax
call fcn.00c389b0
jmp 0xc4ecb0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x34]
call fcn.00c70450
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00c70450
mov edx, dword [esp + 0x4c]
mov edi, dword [edx + 0x48]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov esi, dword [edi]
push eax
mov eax, dword [edx + 0x28]
add esi, 0xa8
call eax
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x8c]
push edx
mov edx, dword [esi]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.00c3bf90
lea ecx, [esp + 0x40]
call fcn.00c66940
xor edi, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
lea edx, [esp + 0x40]
push edx
call eax
xor ecx, ecx
cmp dword [eax], edi
setne cl
mov esi, ecx
lea ecx, [esp + 0x40]
call fcn.00c66940
cmp esi, edi
je 0xc4f3ef
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x40]
push eax
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x48]
push edx
call eax
lea ecx, [esp + 0x40]
call fcn.00c66940
mov dword [esp + 0x5c], 1
jmp 0xc4f44b
lea ecx, [esp + 0x28]
call fcn.00c713c0
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00c3bef0
mov dword [esp + 0x5c], 1
jmp 0xc4f44b
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x24]
mov dword [edx], eax
call fcn.00c389b0
jmp 0xc4ecb0
mov eax, dword [ebp + 0x40]
lea ecx, [esp + 0x24]
mov dword [eax], 1
call fcn.00c389b0
jmp 0xc4ecb0
mov dword [esp + 0x5c], 2
lea ecx, [esp + 0x58]
push 4
push ecx
call fcn.00c30f10
add esp, 8
cmp dword [esp + 0x1c], edi
je 0xc4f6da
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00c30f10
add esp, 8
cmp dword [esp + 0x48], edi
je 0xc4f5bc
test dword [ebp + 0x30], 1
je 0xc4f4b4
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000103
lea ecx, [esp + 0x10]
call fcn.00c66940
lea ecx, [esp + 0x58]
call fcn.00c66940
lea ecx, [esp + 0x24]
call fcn.00c389b0
jmp 0xc4ecb0
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x78], ecx
sub eax, 2
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x1c]
add ecx, 2
mov word [esp + 0x78], cx
mov esi, dword [eax]
mov ecx, dword [ebp + 0x24]
lea edx, [esp + 0x10]
push edx
mov edi, eax
mov eax, dword [ebp + 0x30]
push eax
push ebx
push 0
push ecx
add esi, 0xc
call fcn.00c5dea0
mov edx, dword [ebp + 0xc]
add esp, 8
push eax
push edx
mov edx, dword [esi]
lea eax, [esp + 0x8c]
push eax
mov ecx, edi
call edx
mov esi, eax
test esi, esi
jne 0xc4f61b
mov ecx, dword [ebp + 0x18]
call fcn.00c5d6e0
test eax, eax
je 0xc4f61b
mov edi, dword [ebp + 0x18]
lea eax, [esp + 0x94]
push eax
mov ecx, edi
call fcn.00c5d6f0
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0xbc]
push edx
mov ecx, edi
call fcn.00c5d560
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x90]
call fcn.00c70180
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
mov ebx, eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x8c]
add edi, 0x18
call fcn.00ca07c0
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
test eax, eax
jne 0xc4f61b
mov eax, dword [esp + 0x48]
test al, 0x20
jne 0xc4f61b
mov ecx, dword [esp + 0x1c]
or eax, 0x20
mov dword [esp + 0x48], eax
mov edi, dword [ecx]
mov ebx, ecx
push eax
lea ecx, [esp + 0x8c]
add edi, 0x1c
call fcn.00ca07c0
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
jmp 0xc4f61b
push 0x100b0384
lea ecx, [esp + 0x98]
call fcn.00c70160
mov ecx, eax
call fcn.00ca07c0
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x7c], edx
mov esi, dword [eax]
mov edx, dword [ebp + 0xc]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push ecx
push ebx
push edx
push 0x100b0384
lea ecx, [esp + 0xa8]
add esi, 0x10
call fcn.00c70160
mov ecx, eax
call fcn.00ca07c0
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
mov esi, eax
cmp dword [esp + 0x24], 0
je 0xc4f65c
lea ecx, [esp + 0x50]
push 4
push ecx
call fcn.00c30f10
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 8
lea eax, [esp + 0x50]
push eax
call edx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.00c5e510
add esp, 8
lea ecx, [esp + 0x50]
call fcn.00c66940
test esi, esi
je 0xc4f679
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
and esi, 0xefffffff
mov dword [edx], 0
mov dword [eax], esi
jmp 0xc4f494
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x84]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
call fcn.00c5a870
add esp, 0x18
push eax
lea ecx, [esp + 0x4c]
call fcn.00c3be90
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00c3bf90
lea ecx, [esp + 0x48]
call fcn.00c66940
lea ecx, [esp + 0x40]
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
xor edi, edi
jmp 0xc4f7d1
cmp dword [esp + 0x20], edi
je 0xc4f7d1
mov esi, dword [ebp + 0x30]
test esi, 1
je 0xc4f702
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
mov dword [eax], 0xc0000103
jmp 0xc4f49d
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00c30f10
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 8
lea eax, [esp + 0x10]
push eax
call edx
cmp eax, edi
je 0xc4f742
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
and eax, 0xefffffff
lea ecx, [esp + 0x10]
mov dword [edx], eax
call fcn.00c66940
jmp 0xc4f49d
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push esi
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push eax
call fcn.00c5b990
add esp, 0x14
push eax
lea ecx, [esp + 0x4c]
call fcn.00c3be90
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00c3bf90
lea ecx, [esp + 0x48]
call fcn.00c66940
lea ecx, [esp + 0x40]
call fcn.00c66940
cmp dword [esp + 0x24], edi
je 0xc4f7c8
lea edx, [esp + 0x50]
push 4
push edx
call fcn.00c30f10
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
add esp, 8
lea edx, [esp + 0x50]
push edx
call eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.00c5e510
add esp, 8
lea ecx, [esp + 0x50]
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
mov esi, dword [esp + 0x4c]
mov eax, dword [esi + 0x48]
push eax
lea ecx, [esp + 0x4c]
call fcn.00c70080
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00c30f10
mov eax, dword [ebp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, esi
call fcn.00c4d160
test eax, eax
jne 0xc4f88b
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov esi, dword [esp + 0x10]
call eax
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
cmp ebx, eax
jne 0xc4f88b
lea ecx, [esp + 0x28]
call fcn.00c3be70
lea ecx, [esp + 0x10]
call fcn.00c66940
lea ecx, [esp + 0x48]
call fcn.00c700b0
test dword [ebp + 0xc], 0x100000
je 0xc4f85a
test dword [ebp + 0x30], 0x30
jne 0xc4f85a
mov eax, 1
jmp 0xc4f85c
xor eax, eax
mov ecx, dword [esp + 0x58]
push eax
push ecx
mov ecx, dword [esp + 0x54]
call fcn.00c41350
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x5c]
mov dword [edx], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x40]
mov dword [eax + 4], ecx
mov dword [eax], edi
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
mov dword [eax], edi
jmp 0xc4f49d
mov ecx, dword [ebp + 0x44]
mov dword [ecx], 1
lea ecx, [esp + 0x10]
call fcn.00c66940
lea ecx, [esp + 0x48]
call fcn.00c700b0
jmp 0xc4f49d
mov edx, dword [ebp + 0x40]
pop edi
pop esi
mov dword [edx], ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x40