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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x16bdbbe6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x16bdbbb6
cmp dword [ebp + 0xc], 0
je 0x16bdbbb6
mov esi, ebx
mov eax, esi
call fcn.16bd82b4
test al, al
je 0x16bdbbb6
mov eax, dword [esi + 0x3c]
add eax, ebx
add eax, 0x78
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
test eax, eax
je 0x16bdbbb6
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
add eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
add eax, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xffff
jg 0x16bdba92
mov edx, dword [ebp - 0xc]
mov esi, eax
sub esi, dword [edx + 0x10]
jmp 0x16bdbb08
lea eax, [ebp - 0x24]
mov edx, dword [ebp + 0xc]
call fcn.16bd451c
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x16bdbaa9
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x16bdbbb6
or esi, 0xffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x16bdbb08
inc eax
mov dword [ebp - 0x20], eax
xor edi, edi
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x16bdbb02
add eax, ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.16bd451c
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp + 0xc]
call fcn.16bd451c
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.16bd4728
jne 0x16bdbb02
mov eax, dword [ebp - 0x1c]
movzx esi, word [eax + edi*2]
jmp 0x16bdbb08
inc edi
dec dword [ebp - 0x20]
jne 0x16bdbac5
test esi, esi
jl 0x16bdbbb6
mov eax, dword [ebp - 0xc]
cmp esi, dword [eax + 0x14]
jg 0x16bdbbb6
mov eax, dword [ebp - 0x14]
cmp dword [eax + esi*4], 0
je 0x16bdbbb6
mov eax, dword [ebp - 0x14]
add ebx, dword [eax + esi*4]
mov dword [ebp - 0x10], ebx
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + esi*4]
cmp edx, eax
ja 0x16bdbb4b
mov ecx, dword [ebp - 8]
add edx, dword [ecx + 4]
cmp eax, edx
jbe 0x16bdbb53
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x16bdbbb6
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
call fcn.16bd4af4
mov edx, dword [ebp - 0x30]
mov eax, 0x16bdbc00
call fcn.16bd4c00
test eax, eax
je 0x16bdbbb6
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x10]
call fcn.16bd451c
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.16bd6e2c
mov eax, dword [ebp - 0x34]
call fcn.16bd4790
push eax
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x10]
call fcn.16bd451c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.16bd6d94
mov eax, dword [ebp - 0x3c]
call fcn.16bd4790
push eax
lea eax, [ebp - 4]
push eax
call fcn.16bd68d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bdbbed
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.16bd4348
lea eax, [ebp - 0x30]
call fcn.16bd4a08
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.16bd4348
ret