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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
test byte [ebp + 0x24], 0x40
push ebx
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
je 0xc3250f6
xor eax, eax
jmp 0xc3259a9
mov eax, dword [ebp + 0x24]
and dword [ebp - 8], 0
and dword [ebp - 0x40], 0
push esi
mov esi, dword [ebp + 8]
and eax, 2
push edi
mov edi, dword [ebp + 0x28]
mov dword [ebp - 0xa0], eax
je 0xc325176
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
adc ecx, dword [ebp + 0x20]
and dword [ebp - 0x14], 0
cmp dword [ebp + 0x34], 0
mov dword [ebp - 0x5c], ecx
je 0xc32513d
mov ecx, dword [edi]
lea edx, [ebp - 0x14]
push edx
push dword [ebp - 0x5c]
push eax
push edi
call dword [ecx + 0x34]
jmp 0xc325140
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
push 0xc301abc
push edi
call dword [eax]
test eax, eax
jl 0xc32516f
mov ecx, dword [ebp - 0x20]
push 2
push dword [ebp - 0x14]
push dword [ebp + 0x30]
call fcn.0c30dfbd
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esi + 0x444], 1
mov eax, dword [ebp + 0x24]
and eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x24]
and eax, 6
mov dword [ebp - 0xc], eax
je 0xc325198
and dword [esi + 0x418], 0
and dword [esi + 0x41c], 0
test byte [ebx + 0x34], 1
je 0xc3251e2
mov ecx, dword [esi + 0x418]
mov eax, dword [esi + 0x41c]
mov edx, ecx
or edx, eax
je 0xc3251c8
cmp dword [ebp + 0x10], eax
jg 0xc3251e2
jl 0xc3251bc
cmp dword [ebp + 0xc], ecx
ja 0xc3251e2
cmp dword [ebp + 0x18], eax
jl 0xc3251e2
jg 0xc3251c8
cmp dword [ebp + 0x14], ecx
jbe 0xc3251e2
push dword [ebp + 0x34]
mov ecx, ebx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push edi
call fcn.0c3247fe
jmp 0xc3251f0
cmp dword [ebp - 0xc], 0
je 0xc3251f3
push esi
mov ecx, ebx
call fcn.0c32474c
mov dword [ebp - 8], eax
test byte [ebp + 0x24], 0x1b
je 0xc325201
lea ecx, [ebx + 0x4c]
call fcn.0c31d805
mov eax, dword [esi + 8]
cmp eax, dword [ebx + 0x48]
je 0xc3252b0
xor eax, eax
cmp dword [esi + 0x43c], eax
je 0xc325255
mov dword [ebp - 4], eax
cmp dword [esi + 0x440], eax
jbe 0xc325249
mov eax, dword [esi + 0x43c]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
cmp dword [eax], 0
je 0xc32523b
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x440]
jb 0xc325222
push dword [esi + 0x43c]
call fcn.0c31d9ab
pop ecx
mov eax, dword [ebx + 0x78]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0c31d98f
pop ecx
mov dword [esi + 0x43c], eax
test eax, eax
jne 0xc325281
mov eax, 0x8007000e
jmp 0xc3259a7
xor eax, eax
cmp dword [ebx + 0x78], eax
jbe 0xc325298
mov ecx, dword [esi + 0x43c]
and dword [ecx + eax*4], 0
inc eax
cmp eax, dword [ebx + 0x78]
jb 0xc325288
mov eax, dword [ebx + 0x78]
push esi
mov ecx, ebx
mov dword [esi + 0x440], eax
call fcn.0c323bf2
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
je 0xc3252df
cmp dword [ebp - 0xc], 0
push dword [ebp + 0x34]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
je 0xc3252c9
push 1
jmp 0xc3252cb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebp + 0x30]
push edi
push dword [ebp + 0x2c]
push ebx
call fcn.0c3246b1
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push edx
push 0xc3018dc
push eax
call dword [ecx]
test eax, eax
jge 0xc3252f8
and dword [ebp - 0x40], 0
mov eax, dword [ebx + 0x40]
and dword [ebp - 0x24], 0
cmp dword [ebx + 0x38], 0
mov dword [ebp - 4], eax
jbe 0xc325997
mov eax, dword [ebp - 4]
and dword [ebp - 0x6c], 0
test eax, eax
je 0xc325322
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0xc325978
mov ecx, dword [ebp - 0x24]
cmp dword [eax + ecx*4], 0
je 0xc325978
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x24]
mov esi, dword [eax + edx*4]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x34], ecx
je 0xc32535a
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0xc32535e
mov eax, dword [esi + 0x28]
cdq
cmp edx, dword [ebp + 0x18]
jg 0xc325978
jl 0xc325372
cmp eax, dword [ebp + 0x14]
jae 0xc325978
cmp dword [ebp - 4], ecx
je 0xc32538c
push dword [ebp - 0x24]
mov ecx, ebx
push dword [ebp - 4]
call fcn.0c323934
and eax, dword [esi + 0x10]
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x44], ecx
cmp dword [ebp + 0x34], ecx
je 0xc3253ca
mov eax, dword [edi]
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
call dword [eax + 0x34]
mov edx, dword [esi + 4]
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [esi]
add ecx, dword [ebp + 0x1c]
adc edx, dword [ebp + 0x20]
push edx
push ecx
push edi
call dword [eax + 0x34]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x44]
mov ebx, dword [ebp + 8]
jmp 0xc3253d3
mov ecx, dword [ebp + 0x1c]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x44], ecx
push 0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 0x3c]
push edi
push dword [ebx + 0xc]
add ecx, 0x4c
push dword [ebp - 0x44]
push eax
push dword [ebp - 0x80]
call fcn.0c31d823
cmp dword [ebp - 0x9c], 0
jne 0xc32595b
cmp dword [ebp - 0xc], 0
je 0xc32595b
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x50]
push dword [ebx + 0x448]
push edi
call fcn.0c3242cd
mov dword [ebp - 8], eax
test eax, eax
jl 0xc32595b
mov eax, dword [ebp - 0x10]
test eax, eax
je 0xc325954
and dword [ebp - 0x14], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0xc3019ec
push eax
call dword [ecx]
mov dword [ebp - 8], eax
test eax, eax
jl 0xc325949
push 0xc32d4dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0xc32d4f8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0xc325932
mov ebx, eax
mov eax, dword [esi + 0x30]
cmp dword [ebx], eax
jne 0xc3254ab
cmp dword [ebx + 0x20], edi
jne 0xc3254ab
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebp - 0x14]
jne 0xc3254ab
cmp dword [esi + 0x3c], 0
je 0xc3254b5
push dword [ebx + 0x14]
mov ecx, esi
call fcn.0c32458f
test al, al
jne 0xc3254b5
mov ebx, dword [ebx + 0x24]
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0xc325483
test ebx, ebx
je 0xc325932
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
and dword [ebp - 0x4c], 0
and dword [ebp - 0x48], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x1c]
lea ecx, [ebp + 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x24]
push ecx
push 0x58
mov dword [ebp - 0x2c], eax
mov eax, dword [edi]
push edi
mov dword [ebp - 0x30], ebx
call dword [eax + 0x40]
test eax, eax
jl 0xc325932
cmp dword [ebp + 0x34], 0
mov eax, dword [ebp + 0x2c]
mov dword [eax + 0x28], 0xc
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x30]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x2c]
mov dword [ecx + 0x30], eax
mov eax, dword [esi]
je 0xc3255c7
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0xc]
neg eax
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0c323c5d
sub ebx, eax
mov eax, dword [ebp + 0x10]
sbb dword [ebp - 0x2c], edx
cmp dword [ebp - 0x34], eax
jg 0xc32558e
jl 0xc325556
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x38], eax
jae 0xc32558e
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x38]
push dword [esi + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 0x34]
push ecx
push eax
call fcn.0c323c5d
add dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x38]
adc dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x34]
sub ecx, eax
sbb edx, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
add ebx, ecx
adc dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x2c]
mov ecx, dword [ebp - 0x34]
adc ecx, dword [ebp + 0x20]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x2c]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x2c]
push 0
push 0x2710
push dword [ebp - 0x2c]
mov dword [eax + 0x14], 0x41
mov eax, dword [ebp + 0x2c]
and dword [eax + 0x48], 0
push ebx
jmp 0xc3257a0
mov ecx, dword [edi]
lea edx, [ebp - 0x90]
push edx
mov edx, dword [ebp + 0x1c]
add edx, eax
push edx
xor ebx, ebx
push edi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x28], eax
call dword [ecx + 0x30]
mov edx, dword [ebp - 0x8c]
mov eax, dword [edi]
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp - 0x90]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], ebx
adc edx, dword [ebp - 0x18]
push edx
push ecx
push edi
call dword [eax + 0x34]
mov eax, dword [ebp - 0x28]
cdq
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x7c]
mov ecx, edx
cdq
mov ebx, eax
mov eax, dword [ebp - 0x98]
add eax, dword [ebp + 0x1c]
mov dword [ebp - 0x94], ecx
adc ecx, dword [ebp + 0x20]
cmp edx, ecx
jl 0xc325663
jg 0xc32563a
cmp ebx, eax
jbe 0xc325663
mov eax, dword [esi + 0xc]
neg eax
sub ebx, dword [ebp - 0x98]
push eax
sbb edx, dword [ebp - 0x94]
sub ebx, dword [ebp + 0x1c]
sbb edx, dword [ebp + 0x20]
push edx
push ebx
call fcn.0c323c5d
mov ebx, dword [ebp - 0x30]
sub ebx, eax
sbb dword [ebp - 0x2c], edx
jmp 0xc325666
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0xc]
jge 0xc325742
mov edx, dword [ebp + 0xc]
mov eax, dword [edi]
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 0x1c]
xor ebx, ebx
lea ecx, [ecx + edx*2]
push ecx
push edi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x74], ebx
call dword [eax + 0x30]
mov edx, dword [ebp + 0x1c]
mov eax, dword [edi]
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, edx
add ecx, dword [ebp - 0x28]
push ecx
push edi
call dword [eax + 0x30]
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x68]
push dword [esi + 0xc]
mov ecx, dword [ebp - 0x54]
sbb ecx, dword [ebp - 0x64]
push ecx
push eax
call fcn.0c323c5d
add dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi]
adc dword [ebp - 0x18], edx
lea edx, [ebp - 0x88]
push edx
mov edx, dword [esi + 0x20]
add edx, eax
add edx, dword [ebp + 0x1c]
mov dword [ebp - 0x28], eax
push edx
push edi
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
call dword [ecx + 0x30]
mov ebx, dword [edi]
lea eax, [ebp - 0x74]
push eax
mov eax, dword [esi + 0xc]
neg eax
push eax
push dword [esi + 0x1c]
push dword [esi + 0x18]
call fcn.0c323c5d
mov ecx, dword [ebp - 0x88]
sub ecx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x84]
sbb edi, dword [ebp - 0x54]
add ecx, dword [ebp - 0x68]
adc edi, dword [ebp - 0x64]
sub ecx, eax
sbb edi, edx
push edi
mov edi, dword [ebp + 0x28]
push ecx
push edi
call dword [ebx + 0x34]
mov eax, dword [ebp - 0x74]
cdq
mov ebx, eax
sub ebx, dword [ebp + 0xc]
sbb edx, dword [ebp + 0x10]
sub ebx, dword [ebp + 0x1c]
sbb edx, dword [ebp + 0x20]
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x1c]
add eax, ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp + 0x2c]
mov dword [ecx + 0x14], 2
mov ecx, dword [esi]
sub ecx, dword [esi + 0x28]
mov edx, dword [ebp + 0x2c]
mov dword [edx + 0x48], ecx
mov ecx, dword [edi]
and dword [ebp - 0x60], 0
and dword [ebp - 0x5c], 0
lea edx, [ebp - 0x60]
push edx
push eax
push edi
call dword [ecx + 0x30]
mov eax, dword [edi]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp + 0x1c]
add ecx, ebx
add ecx, dword [ebp - 0x28]
push ecx
push edi
call dword [eax + 0x30]
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x48]
sbb ecx, dword [ebp - 0x5c]
push 0
push 0x2710
push ecx
push eax
call sub.ntdll.dll__alldiv
xor ecx, ecx
cmp edx, ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], eax
jl 0xc325929
jg 0xc3257bf
cmp eax, ecx
jbe 0xc325929
cmp dword [esi + 0x48], ecx
je 0xc3257df
test byte [ebp + 0x24], 4
je 0xc3257df
cmp edx, ecx
jl 0xc325929
jg 0xc3257df
cmp eax, 0x96
jb 0xc325929
test byte [esi + 0x2c], 0x20
je 0xc3257f1
cmp dword [ebp - 0xa0], ecx
jne 0xc325929
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x38], edx
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x40], ebx
mov eax, dword [ebp + 0x2c]
mov dword [eax + 0x44], edx
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x3c]
add eax, dword [edx + 0x30]
mov edx, dword [ebp + 0x2c]
add eax, dword [ebp - 0x6c]
mov dword [edx + 0x4c], eax
cmp word [esi + 0x38], cx
je 0xc325842
movzx ebx, word [esi + 0x38]
call dword [sym.imp.msvcrt.dll_rand]
cdq
lea ecx, [ebx + ebx]
idiv ecx
mov eax, dword [ebp + 0x2c]
sub edx, ebx
add dword [eax + 0x4c], edx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x2c]
mov dword [ecx + 0x50], eax
cmp word [esi + 0x3a], 0
je 0xc32586a
movzx ebx, word [esi + 0x3a]
call dword [sym.imp.msvcrt.dll_rand]
cdq
lea ecx, [ebx + ebx]
idiv ecx
mov eax, dword [ebp + 0x2c]
sub edx, ebx
add dword [eax + 0x50], edx
mov al, byte [esi + 0x2c]
mov ecx, dword [ebp + 0x2c]
mov byte [ecx + 0x54], al
mov eax, dword [esi + 0x4c]
and dword [ebp - 0x20], 0
cmp eax, 0xffffffff
jne 0xc32588b
mov dword [ebp - 8], 0x88781162
jmp 0xc325929
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x444], 0
jne 0xc3258c4
mov ecx, dword [ecx + 0x43c]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0xc3258c4
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [esi + 0x18]
jne 0xc3258c4
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [esi + 0x1c]
jne 0xc3258c4
mov ecx, dword [ebp - 0x80]
cmp dword [ebp - 0x50], ecx
jne 0xc3258c4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
jmp 0xc3258f1
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x78]
mov eax, dword [ebp + 0x2c]
push dword [ebp - 0x70]
push esi
push dword [eax + 0x3c]
push dword [eax + 0x38]
mov eax, dword [ebp - 0xc]
push dword [eax]
push dword [ebp - 0x14]
push dword [ebp + 8]
push dword [eax + 0x14]
call fcn.0c324e9a
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0xc325929
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0xc325919
push dword [ebp + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push dword [ebp + 0x2c]
mov eax, dword [edi]
push edi
call dword [eax + 0x2c]
mov dword [ebp - 8], eax
test eax, eax
jge 0xc325932
push dword [ebp + 0x2c]
mov eax, dword [edi]
push edi
call dword [eax + 0x44]
push 0xc32d4dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0xc32595b
mov dword [ebp - 8], 0x88781161
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x24]
lea eax, [eax + ecx*4]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
mov dword [eax], edx
mov eax, dword [ebx + 4]
cmp dword [eax + ecx*4], 0
jne 0xc325340
mov eax, dword [ebp - 4]
test eax, eax
je 0xc325985
mov eax, dword [eax + 0x1c]
mov dword [ebp - 4], eax
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0x38]
jb 0xc32530c
mov eax, dword [ebp - 0x40]
test eax, eax
je 0xc3259a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x30