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

Disassembly:
mov eax, dword [eax - 0x1c]
test eax, eax
je 0x3481a704
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov edi, dword [eax]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x10]
lea eax, [esp + 0x3c]
push eax
push 0x34853378
mov dword [esp + 0x40], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
call fcn.3481f5f0
test eax, eax
jne 0x348224b4
lea edx, [esp + 0x3c]
push edx
push str.0:s_f
call fcn.3481f5f0
test eax, eax
je 0x348224e2
cmp edi, 1
jbe 0x3481a704
jmp 0x34822512
sub si, 0xd
neg si
sbb esi, esi
and esi, 0xfffffffd
add esi, 4
mov dword [esp + 0x20], esi
jmp 0x3481a71a
push 0xffffffffffffffff
push 0x3484fafe
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x3485dd14]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3485dd14]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
mov ebp, dword [esp + 0x78]
xor eax, eax
push 0x34866aec
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 0x34866aec
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x64]
mov dword [edi], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x60]
mov edi, eax
shr edi, 3
and edi, 1
cmp ecx, 3
mov dword [esp + 0x58], 0
mov dword [esp + 0x30], edi
je 0x3482235e
cmp ecx, 2
jb 0x3481a73a
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x18], 0
jbe 0x3481a73a
mov eax, dword [esp + 0x18]
add esi, 0x30
mov dword [esp + 0x1c], esi
mov edx, dword [ebx + 8]
mov ecx, dword [esi - 0x30]
mov edx, dword [edx + 0x94]
cmp ecx, dword [edx + 4]
ja 0x3481fa91
cmp dword [esi - 0x10], 0
jne 0x34822376
test ecx, ecx
je 0x3482238b
movzx eax, word [esi]
test eax, 0x1000
jne 0x34822402
test eax, 0x2000
jne 0x3482241b
mov edx, dword [edx + 0xc]
test edx, edx
je 0x34822434
imul ecx, ecx, 0x68
lea edi, [ecx + edx - 0x68]
test byte [esi - 0x14], 1
je 0x3481a6f7
test edi, edi
je 0x3482243b
cmp ax, 0x82
mov ecx, dword [edi + 0x24]
movzx esi, word [edi + 0x28]
mov ebx, dword [edi + 0x34]
mov dword [esp + 0x28], ecx
je 0x3481fa6d
cmp ax, 0x81
je 0x3482244c
cmp ax, 0xd
je 0x3481a6ee
mov ecx, dword [0x348663c4]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x10]
push esi
push ecx
call eax
test eax, eax
jne 0x34822462
mov ecx, dword [esp + 0x1c]
movzx ecx, word [ecx]
mov eax, dword [0x348663c4]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
push ecx
push eax
call edx
test eax, eax
jne 0x34822485
test bl, 8
jne 0x34822494
mov eax, dword [esp + 0x1c]
movzx esi, word [eax]
cmp si, 0xd
je 0x3481a773
mov eax, dword [esp + 0x28]
cmp eax, 0xb
je 0x34811b8b
cmp eax, 0xc
je 0x34811b8b
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add eax, 1
add esi, 0x34
cmp eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
jb 0x3481fa77
xor eax, eax
cmp eax, 0x34866aec
je 0x3481a74e
push 0x34866aec
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.3481f5cd
add esp, 0x48
ret 0x24
mov edi, dword [edi + 0x24]
cmp edi, 0xb
mov dword [esp + 0x28], edi
je 0x34811b22
cmp edi, 0xc
je 0x34811b22
test ebp, ebp
jne 0x348224a3
mov dword [esp + 0x14], 0x80040e21
jmp 0x3481a71a
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [edx - 8]
jbe 0x3481a6b2
jmp 0x3481fa84
mov dword [esp + 0x20], 2
jmp 0x3481fa5a
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
jmp 0x3481a630
test ebp, ebp
jne 0x348223e2
jmp 0x3481a794
test ebp, ebp
jne 0x34822537
jmp 0x3481a794
test eax, 0x100
je 0x3481a612
mov dword [esp + 0x14], 0x80040e46
jmp 0x3481a73a
test ebp, ebp
je 0x3481a794
mov dword [ebp + eax*4], 3
jmp 0x3481a794
test edi, edi
je 0x3481fa91
movzx eax, word [esi]
cmp ax, 3
je 0x348223d0
cmp ax, 0x80
je 0x348223d0
mov ecx, dword [0x348663c4]
mov edx, dword [ecx]
push 3
push eax
mov eax, dword [edx + 0x10]
push ecx
call eax
test eax, eax
je 0x348223d0
test ebp, ebp
je 0x3481a794
mov ecx, dword [esp + 0x18]
mov dword [ebp + ecx*4], 2
jmp 0x3481a794
test byte [esi - 0x14], 1
je 0x348223f3
cmp dword [esi - 8], 4
jb 0x3481fa84
jmp 0x348223f3
mov edx, dword [esp + 0x18]
mov dword [ebp + edx*4], 3
jmp 0x3481a794
mov eax, dword [esp + 0x24]
mov dword [eax], 1
jmp 0x3481a71a
test ebp, ebp
je 0x3481a794
mov ecx, dword [esp + 0x18]
mov dword [ebp + ecx*4], 3
jmp 0x3481a794
mov edi, eax
and edi, 0xfff
cmp edi, 0x80
je 0x3481a670
jmp 0x3481fa84
xor edi, edi
jmp 0x3481a682
test ebp, ebp
je 0x3481a794
mov eax, dword [esp + 0x18]
jmp 0x34822537
cmp ax, ax
jne 0x3481fa5a
mov dword [esp + 0x20], 1
jmp 0x3481fa5a
mov edx, dword [esp + 0x1c]
movzx edx, word [edx]
mov eax, dword [0x348663c4]
mov ecx, dword [eax]
push esi
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
je 0x3481a6d0
jmp 0x348223b7
mov eax, dword [esp + 0x24]
mov dword [eax], 1
jmp 0x3481a6ee
mov ecx, dword [esp + 0x24]
mov dword [ecx], 1
jmp 0x3481a6f7
mov edx, dword [esp + 0x18]
mov dword [ebp + edx*4], 5
jmp 0x3481a794
cmp edi, 2
jbe 0x3481a704
cmp edi, 0x1000
je 0x3481a704
test ebp, ebp
je 0x3481a794
mov ecx, dword [esp + 0x18]
mov dword [ebp + ecx*4], 4
jmp 0x3481a794
lea eax, [esp + 0x3c]
push eax
push 0x3485c818
call fcn.3481f5f0
test eax, eax
jne 0x34811b7d
test ebp, ebp
je 0x3481a794
mov ecx, dword [esp + 0x18]
mov dword [ebp + ecx*4], 5
jmp 0x3481a794
cmp edi, 0x1000
je 0x3481a704
test ebp, ebp
je 0x3481a794
mov edx, dword [esp + 0x18]
mov dword [ebp + edx*4], 4
jmp 0x3481a794
mov dword [ebp + eax*4], 1
jmp 0x3481a794