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

Disassembly:
sub esp, 0x2e8
mov eax, dword [0x502a10]
xor eax, esp
mov dword [esp + 0x2e4], eax
mov eax, dword [esp + 0x2ec]
push ebx
push ebp
push esi
xor ebp, ebp
mov ebx, ecx
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
mov esi, 1
cmp eax, ebp
je 0x4b7da7
push eax
push ebx
call fcn.004b7460
add esp, 8
test eax, eax
jne 0x4b7da7
mov ecx, ebx
mov dword [esp + 0x1c], ebp
xor edi, edi
call fcn.004b8890
test eax, eax
jbe 0x4b7d81
jmp 0x4b7b83
xor ebp, ebp
lea esi, [esp + 0x60]
mov dword [esp + 0x5c], vtable.NLibrary::NDatatype::NString::CDynamicHeapStringBuffer.0
mov dword [esp + 0x60], vtable.NLibrary::NDatatype::NArray::CDynamicHeapArrayBuffer_wchar_t_.0
mov byte [esp + 0x64], 0
mov dword [esp + 0x68], 0x1000
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
call fcn.00401540
mov eax, ebx
mov dword [esp + 0x14], ebp
call fcn.004b8860
test eax, eax
jbe 0x4b7cbb
jmp 0x4b7bd0
lea eax, [esp + 0xc8]
call fcn.004b8790
mov ecx, dword [esp + 0x18]
push ebp
lea eax, [esp + 0xcc]
mov ebx, edi
call fcn.004b9220
test eax, eax
jne 0x4b7ca5
lea esi, [esp + 0x28]
mov dword [esp + 0x24], vtable.NLibrary::NDatatype::NString::CDynamicHeapStringBuffer.0
mov dword [esp + 0x28], vtable.NLibrary::NDatatype::NArray::CDynamicHeapArrayBuffer_wchar_t_.0
mov byte [esp + 0x2c], al
mov dword [esp + 0x30], 0x1000
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00401540
lea ebx, [esp + 0x24]
lea ecx, [esp + 0xc8]
call fcn.004b7800
test eax, eax
jne 0x4b7c9c
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov esi, eax
mov eax, dword [esp + 0x5c]
mov edx, dword [eax]
lea ecx, [esp + 0x5c]
call edx
cmp al, 1
jne 0x4b7c9c
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov ecx, ebx
call edx
cmp al, 1
jne 0x4b7c9c
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
cmp eax, esi
jb 0x4b7c9c
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x10]
mov ecx, ebx
call edx
test esi, esi
jbe 0x4b7c98
push esi
push eax
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x64]
call edx
test eax, eax
jne 0x4b7c9c
inc dword [esp + 0x14]
lea ecx, [esp + 0x28]
call fcn.004032f0
mov eax, dword [esp + 0x18]
inc ebp
call fcn.004b8860
cmp ebp, eax
jb 0x4b7bd0
mov ebx, dword [esp + 0x18]
mov eax, ebx
call fcn.004b8860
cmp dword [esp + 0x14], eax
jne 0x4b7d68
lea esi, [esp + 0x78]
call fcn.00403350
push 0
push edi
call fcn.004b4ec0
add esp, 8
test eax, eax
jne 0x4b7d68
mov eax, 0x50a9e8
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov eax, 0x50a9d0
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], eax
mov edx, esi
lea eax, [esp + 0x24]
mov ecx, 0x50a9dc
mov dword [esp + 0x3c], edx
push 0xe
lea edx, [esp + 0x60]
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 0x50aa78
mov dword [esp + 0x34], 0x50a9c4
mov dword [esp + 0x38], 0x50aa9c
mov dword [esp + 0x3c], 0x50a9f4
mov dword [esp + 0x4c], 0x50aa84
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0x50aa90
call fcn.004b5180
add esp, 8
test eax, eax
jne 0x4b7d68
inc dword [esp + 0x1c]
lea ecx, [esp + 0x60]
call fcn.004032f0
mov ecx, ebx
inc edi
call fcn.004b8890
cmp edi, eax
jb 0x4b7b81
mov ecx, ebx
call fcn.004b8890
cmp dword [esp + 0x1c], eax
jne 0x4b7da0
mov ebx, dword [esp + 0x20]
mov esi, 0x50aa6c
call fcn.004b5020
test eax, eax
je 0x4b7da9
mov eax, 1
jmp 0x4b7da9
mov eax, esi
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00425bb1
add esp, 0x2e8
ret