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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x6c]
xor ebx, ebx
push ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esi + 0xb0], ebx
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x198]
mov dword [esp + 0x24], edi
cmp edi, ebx
je 0x34215577
cmp dword [esp + 0x40], ebx
jne 0x34217692
xor ecx, ecx
mov eax, edi
mov edx, 8
xor esi, esi
mul edx
seto cl
mov dword [esp + 0x20], ebx
neg ecx
or ecx, eax
push ecx
call fcn.341f21e0
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x342ad2c9
xor ebp, ebp
mov dword [esp + 0x18], ebx
test edi, edi
jle 0x34215379
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x190]
mov ecx, dword [ecx + ebp*4]
test byte [ecx + 0x1c], 8
je 0x34215368
cmp byte [ecx + 0x72], 0
jne 0x34215588
mov edx, dword [esp + 0x10]
mov dword [edx + ebx*8], ecx
mov edi, dword [ecx + 0xc]
call fcn.3421559a
mov ecx, dword [esp + 0x10]
shl eax, 0x18
add eax, edi
mov edi, dword [esp + 0x24]
mov dword [ecx + ebx*8 + 4], eax
inc ebx
inc ebp
cmp ebp, edi
jl 0x3421532a
mov dword [esp + 0x18], ebx
test esi, esi
ja 0x342155ad
mov edi, dword [esp + 0x3c]
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [esp + 0x34], esi
test esi, esi
jle 0x34215403
cmp esi, ebx
jge 0x342153f2
mov edx, dword [esp + 0x10]
mov eax, edx
lea edi, [esi*8]
lea ecx, [eax + edi]
xor ebp, ebp
mov eax, ebx
sub eax, esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
test ebp, ebp
jl 0x342153c8
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 4]
ja 0x342155df
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
inc ebp
add edx, 8
add ecx, 8
sub dword [esp + 0x30], 1
mov dword [esp + 0x40], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
jne 0x342153b8
mov edi, dword [esp + 0x3c]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov dword [esp + 0x34], eax
test esi, esi
jg 0x3421538e
xor esi, esi
test ebx, ebx
jle 0x3421542a
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + esi*8]
cmp byte [ecx + 0x72], 0
je 0x3421542a
push edi
call fcn.3421560b
test byte [edi], 8
jne 0x342154f7
inc esi
cmp esi, ebx
jl 0x34215409
test byte [edi], 8
jne 0x342154f7
cmp esi, ebx
mov eax, esi
jge 0x342154f7
mov ecx, dword [esp + 0x20]
cmp ecx, 2
jae 0x3421545d
mov edx, dword [esp + 0x10]
mov edx, dword [edx + eax*8]
test byte [edx + 0x1c], 8
je 0x34215458
inc ecx
mov dword [esp + 0x20], ecx
inc eax
cmp eax, ebx
jl 0x3421543d
mov edi, dword [esp + 0x14]
cmp ecx, 1
jbe 0x34264f24
cmp dword [edi + 0x48], 1
je 0x34264f24
mov eax, dword [edi + 0x68]
mov ecx, 0x100
cmp word [edi + eax*2 + 0x1b4], cx
jb 0x342ad30c
mov ebp, dword [esp + 0x3c]
push ebp
push edi
push 0
push eax
call fcn.342161c6
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + esi*8]
push ebp
call fcn.3421560b
inc esi
cmp esi, ebx
jl 0x34215498
cmp dword [esp + 0x20], 0
jbe 0x342154f3
test byte [ebp], 8
jne 0x342154f3
cmp dword [edi + 0x48], 1
je 0x342154f3
mov ecx, dword [edi + 0x68]
movzx eax, word [edi + ecx*2 + 0x1b4]
lea ecx, [edi + ecx*2 + 0x1b4]
cmp ax, 1
je 0x342154f3
movzx eax, ax
inc eax
cmp eax, 0xffff
ja 0x342ad32c
push ebp
push edi
mov word [ecx], ax
mov edx, dword [edi + 0x68]
push eax
push edx
call fcn.342161c6
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
push eax
call fcn.341f5892
mov ebp, dword [esp + 0x20]
add esp, 4
xor ebx, ebx
test byte [edi], 8
jne 0x34215577
xor edi, edi
cmp dword [esp + 0x24], edi
jle 0x34215546
mov bl, 0xfd
lea esp, [esp]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x190]
mov esi, dword [edx + edi*4]
mov eax, dword [esp + 0x3c]
push eax
mov ecx, esi
call fcn.341f562b
and byte [esi + 0x78], bl
mov ecx, esi
call fcn.34215807
inc edi
cmp edi, dword [esp + 0x24]
jl 0x3421551c
mov esi, dword [esp + 0x14]
mov ecx, esi
mov dword [esi + 0x198], 0
call fcn.34215844
cmp dword [esp + 0x18], 0
jle 0x34215573
call fcn.341f37b8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xb8], eax
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov eax, dword [ecx + 0xc]
cmp eax, esi
jbe 0x34215347
mov esi, eax
jmp 0x34215347
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
push edi
push 1
lea edx, [esp + 0x48]
shl esi, 0xc
push edx
add esi, 0xfff
push esi
mov byte [esp + 0x50], 0
call fcn.3420c9cd
test byte [edi], 8
je 0x3421537d
jmp 0x342ad2ea
mov ebx, dword [ecx]
mov esi, dword [edx]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [ecx], esi
mov esi, dword [esp + 0x34]
mov dword [ecx + 4], eax
sub ebp, esi
sub edx, edi
sub ecx, edi
test ebp, ebp
jge 0x342153bc
jmp 0x342153c8
mov edi, dword [esp + 0x3c]
jmp 0x3421550a
mov ebp, dword [esp + 0x3c]
jmp 0x34215498
mov ecx, dword [esp + 0x3c]
push 1
push 0xfffffc0d
call fcn.341f8dac
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.341f5892
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov edx, dword [edi + 8]
mov ecx, dword [esp + 0x3c]
push 1
push 0
push edx
push 0xffffe004
push 0xfffffb4a
call fcn.34214687
jmp 0x34264f24
mov eax, 0x100
jmp 0x342154e4