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

Disassembly:
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x20], ebx
push ebp
mov eax, dword [esp + 0x224]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x18], 0xfffffffe
mov dword [eax], ebx
call fcn.00423800
call fcn.00423410
call fcn.004232a0
push ebx
push ebx
call fcn.004c3610
mov ebp, dword [esp + 0x230]
add esp, 8
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x40c510
cmp byte [eax], bl
jne 0x40c510
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x20], 0
je 0x40c530
mov eax, dword [esp + 0x20]
cmp byte [eax], 0x2d
jne 0x40c530
cmp byte [eax + 1], 0
jne 0x40c530
mov dword [esp + 0x2c], 1
jmp 0x40c538
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x2c], 0
je 0x40c547
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0x3c]
inc eax
cmp eax, 1
sbb eax, eax
neg eax
mov dword [esp + 0x38], eax
test eax, eax
je 0x40c561
mov dword [ebp + 0x3c], 0
lea edi, [esp + 0xd0]
xor eax, eax
mov ecx, 0x28
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
test ax, ax
jge 0x40c5aa
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c5a0
mov eax, dword [eax]
test eax, eax
je 0x40c5a0
lea ecx, [esp + 0xd0]
push 0x28
push ecx
push eax
call fcn.0040d470
mov dword [esp + 0x34], eax
add esp, 0xc
jmp 0x40c5ec
mov dword [esp + 0x28], 0
jmp 0x40c5ec
cmp dword [esp + 0x2c], 0
je 0x40c5c1
movsx eax, ax
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ecx
jmp 0x40c5f7
cmp ax, 0x28
jl 0x40c5cb
mov ax, 0x28
movsx eax, ax
mov dword [esp + 0x28], eax
test eax, eax
je 0x40c5ec
lea ecx, [eax*4]
lea edi, [esp + 0xd0]
shr ecx, 2
mov esi, dword [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xd0]
mov dword [esp + 0x34], eax
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xbc]
test eax, eax
je 0x40c623
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], 3
je 0x40c7fd
mov dword [esp + 0x18], 0xffffffe2
jmp 0x40ccc0
lea edi, [esp + 0x6c]
xor eax, eax
mov ecx, 0x19
rep stosd dword es:[edi], eax
mov byte [esp + 0x89], 1
cmp dword [esp + 0x2c], 1
sbb eax, eax
xor ecx, ecx
mov cx, word [ebp + 0x70]
and eax, 9
or eax, ecx
mov dword [esp + 0x80], eax
xor eax, eax
mov ax, word [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x74], eax
xor eax, eax
mov ax, word [ebp + 0x2a]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov cx, word [ebp + 0xc0]
test cl, 2
jne 0x40ccb8
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x40c68c
test cx, cx
jne 0x40ccb8
cmp eax, 0xb
jne 0x40c6a1
mov dword [ebp + 0x24], 0
mov word [ebp + 0xc0], 0x15
mov ax, word [ebp + 0xc0]
test al, 8
je 0x40c6c4
cmp dword [ebp + 0x44], 0
jne 0x40ccb8
cmp dword [ebp + 0x4c], 0
jne 0x40ccb8
or al, 0x14
jmp 0x40c6ca
test al, 0x10
je 0x40c6d1
or al, 4
mov word [ebp + 0xc0], ax
mov ax, word [ebp + 0xc0]
mov ecx, dword [ebp + 0xc4]
cmp dword [esp + 0x38], 0
mov word [esp + 0x6c], ax
mov dword [esp + 0x70], ecx
jne 0x40c700
mov dword [esp + 0x9c], 0x4105c0
mov dword [esp + 0xa0], ebp
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x40c726
push eax
lea eax, [esp + 0x174]
push eax
call fcn.0040cde0
lea eax, [esp + 0x178]
mov dword [esp + 0xb4], eax
add esp, 8
mov eax, dword [ebp + 0xb4]
mov ecx, dword [ebp + 0xb0]
mov dword [esp + 0xbc], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0xa4], ecx
test eax, eax
je 0x40c74e
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x40c75c
mov dword [esp + 0xb4], eax
cmp dword [esp + 0x20], 0
je 0x40c773
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
je 0x40c773
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
mov byte [esp + 0xc0], 1
lea edx, [esp + 0x6c]
mov dword [esp + 0xc4], eax
lea eax, [esp + 0x34]
push edx
lea edx, [esp + 0x18]
push esi
mov dword [esp + 0xd0], ecx
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.004b3ac0
add esp, 0x14
test eax, eax
je 0x40c608
jge 0x40c7e7
cmp eax, 0xfffffffc
je 0x40c7cd
cmp eax, 0xfffffffd
je 0x40c7da
mov dword [esp + 0x18], 0xfffffffe
jmp 0x40ccc0
mov dword [esp + 0x18], 0xffffff83
jmp 0x40ccc0
mov dword [esp + 0x18], 0xffffff9c
jmp 0x40ccc0
cmp eax, 2
jne 0x40c608
mov dword [esp + 0x18], 0xffffffec
jmp 0x40ccc0
cmp dword [0x51ec94], 0
je 0x40c82a
mov eax, dword [esp + 0x14]
test byte [eax + 0xa2], 4
je 0x40c82a
push 0
add eax, 0x82c
push 5
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.004b4520
add esp, 0x10
mov ax, word [ebp + 0x5c]
test ax, ax
je 0x40c84e
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [ebp + 0x60]
push eax
push ecx
call fcn.0040d290
add esp, 0xc
test ax, ax
jne 0x40ccc0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xa8]
lea eax, [esp + 0x3c]
push eax
push 0x511a78
mov edx, dword [ecx + 0x24]
push 6
lea ecx, [esp + 0x40]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x78], edx
push ecx
lea edx, [esp + 0x38]
push edx
push eax
call fcn.004ab7b0
add esp, 0x18
test eax, eax
jne 0x40ccc0
mov byte [esp + 0x13], 1
cmp dword [esp + 0x2c], 0
je 0x40c89e
mov eax, dword [esp + 0x28]
mov word [ebp + 0xc], ax
mov eax, dword [esp + 0x14]
push 0x15
push 0x1cc
push eax
call fcn.0040f980
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x40ccc0
mov dword [ebx + 0xc], 0xffffffff
mov eax, dword [esp + 0x14]
lea edi, [ebx + 0x54]
mov esi, ebp
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
movsx eax, word [ebp]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x38], 0
jne 0x40c901
mov eax, dword [esp + 0x14]
push ebx
push 0x4105c0
push eax
call fcn.004c2270
add esp, 0xc
mov eax, dword [esp + 0x14]
push 1
push eax
call fcn.004c0600
mov dword [esp + 0x178], eax
add esp, 8
push ebx
call fcn.0040d550
add esp, 4
cmp dword [esp + 0x54], 0
je 0x40c92e
mov si, word [esp + 0x58]
jmp 0x40c93b
mov si, word [ebp + 0x72]
test si, si
jne 0x40c93b
mov si, 0xf
cmp dword [esp + 0x5c], 0
je 0x40c949
mov di, word [esp + 0x60]
jmp 0x40c956
mov di, word [ebp + 0x74]
test di, di
jne 0x40c956
mov di, 0xf
cmp dword [esp + 0x64], 0
je 0x40c984
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x70]
push eax
push 0xffffffffffffffff
push 0
push ecx
call fcn.004b1540
mov dword [esp + 0x44], eax
add esp, 0x14
test eax, eax
je 0x40ccc0
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x40c9ae
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x70]
push eax
push 0xffffffffffffffff
push 0
push ecx
call fcn.004b1540
mov dword [esp + 0x44], eax
add esp, 0x14
test eax, eax
je 0x40ccc0
movzx ecx, di
movzx edx, si
mov eax, dword [esp + 0x30]
push eax
push ecx
push edx
push ebx
call fcn.0040d080
add esp, 0x10
test eax, eax
jne 0x40ccc0
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x54], 0
jne 0x40c9fb
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.0040f050
movsx eax, ax
add esp, 0xc
test eax, eax
je 0x40c9fb
mov dword [esp + 0x18], eax
jmp 0x40ccc0
mov eax, dword [esp + 0x170]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.004c0600
add esp, 8
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0x40ca56
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x70]
push eax
push 0xffffffffffffffff
push 0
push ecx
call fcn.004b1540
add esp, 0x14
test eax, eax
je 0x40ccc0
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004bb670
movsx eax, ax
add esp, 8
test eax, eax
je 0x40ca56
jge 0x40ca56
mov dword [esp + 0x18], eax
jmp 0x40ccc0
mov eax, dword [esp + 0x14]
push eax
call fcn.004bb660
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004c33d0
add esp, 8
mov dword [ebx + 0x30], eax
test eax, eax
je 0x40caa8
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004b11c0
add esp, 8
mov esi, eax
test esi, esi
je 0x40ccc0
mov eax, dword [ebx + 0x30]
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [ecx + 0x44]
push edx
push ecx
call fcn.004aa460
add esp, 0xc
mov dword [ebx + 0x30], esi
cmp dword [esp + 0x3c], 0
je 0x40cad6
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x70]
push eax
push 0xffffffffffffffff
push 0
push ecx
call fcn.004b1540
mov dword [esp + 0x38], eax
add esp, 0x14
test eax, eax
je 0x40ccc0
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x40cb00
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x70]
push eax
push 0xffffffffffffffff
push 0
push ecx
call fcn.004b1540
mov dword [esp + 0x38], eax
add esp, 0x14
test eax, eax
je 0x40ccc0
cmp dword [esp + 0x44], 0
je 0x40cb48
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x70]
push eax
push 0xffffffffffffffff
push 0
push ecx
call fcn.004b1540
add esp, 0x14
mov esi, eax
test esi, esi
je 0x40ccc0
mov eax, dword [esp + 0x14]
push esi
push eax
call fcn.004c2850
mov eax, dword [esp + 0x1c]
add esp, 8
push esi
push eax
call fcn.004b11f0
add esp, 8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0040d240
add esp, 8
test eax, eax
jne 0x40ccc0
push ebx
call fcn.00408300
add esp, 4
test ax, ax
jne 0x40ccc0
mov eax, dword [esp + 0x14]
push 3
push eax
call fcn.0048d6e0
add esp, 8
mov dword [ebx + 0x18], eax
cmp dword [esp + 0x24], 0
je 0x40cbb2
mov eax, dword [esp + 0x24]
push 0
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.004b6c30
add esp, 0xc
test eax, eax
jne 0x40cbb2
mov eax, dword [esp + 0x14]
push eax
call fcn.0048ab70
add esp, 4
cmp dword [esp + 0x4c], 0
je 0x40cbe1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x70]
push eax
push 0xffffffffffffffff
push 0
push ecx
call fcn.004b1540
mov dword [esp + 0x30], eax
add esp, 0x14
test eax, eax
jne 0x40cc0b
jmp 0x40ccc0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x40cc0b
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x70]
push eax
push 0xffffffffffffffff
push 0
push ecx
call fcn.004b1540
mov dword [esp + 0x30], eax
add esp, 0x14
test eax, eax
je 0x40ccc0
cmp dword [esp + 0x1c], 0
je 0x40cc7b
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x40cc7b
cmp dword [esp + 0x2c], 0
je 0x40cc63
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.004bde40
add esp, 8
test eax, eax
jne 0x40cc63
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push 0xffff98d8
push 3
push ecx
call fcn.004bda00
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
add esp, 0x10
push ecx
push edx
call fcn.004c2450
add esp, 8
test eax, eax
jne 0x40ccc0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push ebx
call fcn.00422e70
add esp, 0xc
test ax, ax
jne 0x40ccc0
cmp dword [ebx + 0xa8], 0
je 0x40cc97
mov eax, dword [esp + 0x14]
push ebx
push 0x422cc0
push eax
call fcn.0044ee10
add esp, 0xc
push ebx
call fcn.00422080
add esp, 4
test ax, ax
jne 0x40ccc0
mov eax, dword [esp + 0x224]
mov dword [esp + 0x18], 0
mov dword [eax], ebx
jmp 0x40ccc0
mov dword [esp + 0x18], 0xfffffff2
cmp byte [esp + 0x13], 0
je 0x40cce0
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x14]
push eax
push 0x511a78
push 6
push ecx
call fcn.004abe60
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x40cd86
cmp dword [esp + 0x14], 0
je 0x40cd0c
cmp dword [esp + 0x38], 0
jne 0x40cd0c
mov eax, dword [esp + 0x14]
push ebp
push 0x4105c0
push eax
call fcn.004c2270
add esp, 0xc
test ebx, ebx
je 0x40cd4f
mov eax, dword [ebx + 0x174]
test eax, eax
je 0x40cd28
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004c1f40
add esp, 8
push 1
push ebx
call fcn.004221b0
mov eax, dword [esp + 0x1c]
add esp, 8
push ebx
mov ecx, dword [eax + 0x44]
push ecx
push eax
call fcn.004aa460
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [ecx], 0
cmp dword [esp + 0x14], 0
je 0x40cdd1
cmp dword [ebp + 0xbc], 0
jne 0x40cdd1
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x98]
test eax, eax
je 0x40cd78
mov eax, dword [eax + 4]
test eax, eax
je 0x40cd78
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push 0xfffffffffffffffe
push eax
call fcn.004b4310
jmp 0x40cdce
cmp dword [esp + 0x1c], 0
je 0x40cd9f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.004b11f0
add esp, 8
cmp dword [esp + 0x24], 0
je 0x40cdb8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.004b11f0
add esp, 8
cmp dword [esp + 0x30], 0
je 0x40cdd1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.004b11f0
add esp, 8
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x210
ret