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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4bd8a6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x3c]
add eax, esi
mov edx, dword [eax + 0x78]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0x7c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
add eax, esi
mov ebx, eax
add ebx, 0x10
mov edi, dword [ebx]
mov ebx, eax
add ebx, 0x18
mov edx, dword [ebx]
mov dword [ebp - 0x1c], edx
mov ebx, eax
add ebx, 0x1c
mov edx, dword [ebx]
mov dword [ebp - 0x20], edx
mov ebx, eax
add ebx, 0x20
mov edx, dword [ebx]
mov dword [ebp - 0x24], edx
mov ebx, eax
add ebx, 0x24
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0xffff
jbe 0x4bd792
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00405430
mov eax, dword [ebp - 0x1c]
test eax, eax
jbe 0x4bd797
mov dword [ebp - 0x30], eax
mov edi, 1
mov ebx, dword [ebp - 0x24]
add ebx, esi
mov eax, edi
dec eax
add eax, eax
add eax, eax
add ebx, eax
lea eax, [ebp - 8]
mov edx, dword [ebx]
add edx, esi
call fcn.00405430
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405660
jne 0x4bd78a
mov eax, dword [ebp - 0x28]
add eax, esi
mov edx, edi
dec edx
add edx, edx
add eax, edx
movzx eax, word [eax]
mov dword [ebp - 0x2c], eax
jmp 0x4bd797
inc edi
dec dword [ebp - 0x30]
jne 0x4bd74f
jmp 0x4bd797
sub eax, edi
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x20]
add ebx, esi
mov eax, dword [ebp - 0x2c]
add eax, eax
add eax, eax
add ebx, eax
mov eax, dword [ebp - 0x18]
mov edi, dword [ebx]
cmp eax, edi
ja 0x4bd886
add eax, dword [ebp - 0x14]
cmp edi, eax
ja 0x4bd886
lea eax, [ebp - 4]
mov edx, edi
add edx, esi
call fcn.00405430
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004052d0
jmp 0x4bd80f
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4bd7e2
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x4bd8c0
call fcn.00405814
sub ebx, eax
push ebx
mov edx, dword [ebp - 8]
mov eax, 0x4bd8c0
call fcn.00405814
mov edx, eax
inc edx
mov eax, dword [ebp - 8]
pop ecx
call fcn.00405730
mov edx, dword [ebp - 8]
mov eax, 0x4bd8c0
call fcn.00405814
test eax, eax
jg 0x4bd7d6
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4bd82c
sub ebx, 4
mov ebx, dword [ebx]
mov esi, dword [ebp - 8]
test esi, esi
je 0x4bd838
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
mov ecx, ebx
sub ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405730
mov eax, dword [ebp - 4]
call fcn.004056c8
mov ebx, eax
push ebx
call fcn.00407cf8
mov edi, eax
test edi, edi
jne 0x4bd86c
push ebx
call fcn.00407d90
mov edi, eax
test edi, edi
jbe 0x4bd88b
mov eax, dword [ebp - 8]
call fcn.004056c8
mov edx, eax
mov eax, edi
call fcn.004bd6b8
mov dword [ebp - 0x10], eax
jmp 0x4bd88b
add esi, edi
mov dword [ebp - 0x10], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd8ad
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040525c
ret