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

Disassembly:
sub esp, 0x60
mov eax, dword [0x66f704]
push ebx
push ebp
push esi
lea ecx, [esp + 0xf]
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov al, byte [esp + 0x74]
xor ebp, ebp
push ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4c], al
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
call fcn.004bdc70
mov ecx, dword [esp + 0x74]
mov dl, byte [esp + 0x74]
mov eax, dword [0x66f704]
mov dword [esp + 0x44], ebp
mov ebx, dword [ecx + 0x38e8]
mov dword [esp + 0x6c], ebp
cmp ebx, ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x14], ebp
mov byte [esp + 0x1c], dl
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], eax
je 0x4bdbe0
mov edx, dword [esp + 0x78]
push 0x6d37b0
push edx
lea ecx, [esp + 0x44]
mov dword [ebx + 0x24], ebp
call fcn.004bcd80
test eax, eax
je 0x4bdbe0
lea eax, [esp + 0x2c]
push str.IMAGE
push eax
lea ecx, [esp + 0x44]
call fcn.004bd360
mov esi, eax
lea ecx, [esp + 0x1c]
cmp ecx, esi
je 0x4bdaf8
mov eax, dword [esi + 4]
cmp eax, ebp
jne 0x4bda01
xor edi, edi
jmp 0x4bda09
mov edi, dword [esi + 8]
sub edi, eax
sar edi, 2
lea ecx, [esp + 0x1c]
call fcn.004bdc50
cmp edi, eax
ja 0x4bda51
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.004be9c0
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004be3a0
mov ecx, esi
call fcn.004bdc50
mov edx, dword [esp + 0x20]
lea eax, [edx + eax*4]
mov dword [esp + 0x24], eax
jmp 0x4bdaf8
mov ecx, esi
call fcn.004bdc50
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.004be380
cmp edi, eax
ja 0x4bda9d
mov edi, dword [esi + 4]
lea ecx, [esp + 0x1c]
call fcn.004bdc50
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
lea edi, [edi + eax*4]
push ecx
push edi
push edx
call fcn.004be9c0
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 8]
add esp, 0xc
push eax
push ecx
push edi
lea ecx, [esp + 0x28]
call fcn.004be3b0
jmp 0x4bda3a
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004be3a0
mov eax, dword [esp + 0x20]
push eax
call fcn.005129f1
add esp, 4
mov ecx, esi
call fcn.004bdc50
cmp eax, ebp
jge 0x4bdaca
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.005129c8
add esp, 4
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.004be3b0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.004be3a0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.005129f1
mov ecx, dword [esp + 0x24]
add esp, 4
cmp ecx, ebp
je 0x4bdbe0
mov eax, dword [esp + 0x24]
sub eax, ecx
sar eax, 2
je 0x4bdbe0
lea edx, [eax + eax*2]
mov dword [ebx + 0x24], eax
shl edx, 3
push edx
call fcn.004b6a20
add esp, 4
cmp eax, ebp
mov dword [ebx + 0x1c], eax
je 0x4bdbe0
mov eax, dword [ebx + 0x24]
xor esi, esi
cmp eax, ebp
jle 0x4bdbd8
xor edi, edi
mov eax, dword [esp + 0x20]
push str.INDEX
mov ecx, dword [eax + esi*4]
call fcn.004bd340
cmp eax, ebp
je 0x4bdb7f
push eax
call fcn.004f5a8f
mov ecx, dword [ebx + 0x1c]
add esp, 4
mov dword [edi + ecx], eax
mov edx, dword [esp + 0x20]
push str.NAME
mov ecx, dword [edx + esi*4]
call fcn.004bd4c0
cmp eax, ebp
je 0x4bdba4
push eax
call fcn.004f5a8f
mov ecx, dword [ebx + 0x1c]
add esp, 4
mov dword [edi + ecx + 0x10], eax
mov edx, dword [esp + 0x20]
push str.TOTALBYTES
mov ecx, dword [edx + esi*4]
call fcn.004bd4c0
cmp eax, ebp
je 0x4bdbcd
push eax
call fcn.004f5c05
mov ecx, dword [ebx + 0x1c]
add esp, 4
mov dword [edi + ecx + 8], eax
mov dword [edi + ecx + 0xc], edx
mov eax, dword [ebx + 0x24]
inc esi
add edi, 0x18
cmp esi, eax
jl 0x4bdb5b
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x18]
call fcn.0050dfa8
mov edx, dword [esp + 0x20]
push edx
call fcn.005129f1
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004bbf90
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret