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

Disassembly:
sub esp, 0xb0
mov eax, dword [0x5923b4]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb8]
xorps xmm0, xmm0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc0]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0x28], eax
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
test esi, esi
je 0x4b984c
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x4b982f
mov ecx, dword [eax + 0x1cb8]
test ecx, ecx
je 0x4b980f
mov ebx, dword [ecx + 0x54c]
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x4b982f
cmp dword [0x58fc48], 0xffffffff
jne 0x4b982f
push str.L_BORROW_ERR
push esi
call fcn.004c14d0
add esp, 8
mov dword [0x58fc48], eax
test ebx, ebx
je 0x4b984c
push 0
push 0
push 0
push 0
push 4
push 0
push 0
call ebx
mov ebp, eax
add esp, 0x1c
test ebp, ebp
jne 0x4b9859
mov dword [esp + 0x20], 1
mov ebp, 0x4d2
xor ebp, 0xd83980a2
je 0x4b9876
push ebp
lea eax, [esp + 0x60]
push 0x56b6dc
push eax
call fcn.00401741
add esp, 0xc
jmp 0x4b987b
mov byte [esp + 0x5c], 0
push dword [esp + 0x28]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x90]
push str.borrow__s__s
push eax
call fcn.00401741
add esp, 0x10
test esi, esi
je 0x4b9d74
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x4b9d74
mov eax, dword [eax + 0x1cb8]
mov eax, dword [eax + 0x564]
test eax, eax
je 0x4b98de
cmp byte [eax], 0
je 0x4b98de
push 0
push 0x3d
push eax
call fcn.00414c30
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4b9d72
inc edi
jmp 0x4b9953
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], edi
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x94]
push eax
push esi
call fcn.004c1320
mov eax, dword [esp + 0x2c]
add esp, 0x14
dec eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x38], edi
je 0x4b9d74
inc eax
push eax
push esi
call fcn.004bad00
push 0
push dword [esp + 0x24]
mov edi, eax
push dword [esp + 0x48]
mov dword [esp + 0x5c], edi
push edi
call fcn.00414a10
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x54]
push eax
push str._04x
push edi
mov byte [edi + ecx], 0
call fcn.00425a07
sub dword [esp + 0x3c], 0xc
add esp, 0x24
add edi, 0xc
mov dword [esp + 0x10], edi
test edi, edi
je 0x4b9d72
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4b9d72
cmp dword [eax + 0x568], 0
je 0x4b9d72
mov eax, dword [esi + 0x1b0]
mov eax, dword [eax + 0x1cb8]
cmp dword [eax + 0x564], 0
jne 0x4b9a46
push 0
push 0x1f
lea eax, [esp + 0x70]
push 0
push eax
call fcn.00414af0
push 0x1f
push dword [esp + 0x3c]
lea eax, [esp + 0x80]
push eax
call fcn.004cfc90
push 0
push 4
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.00414a10
mov eax, dword [esp + 0x78]
xor edx, edx
xor eax, ebp
mov ecx, 7
xor eax, 0x9ace36db
add esp, 0x2c
div ecx
lea ebp, [edx + 1]
test ebp, ebp
jle 0x4b9a46
mov dword [esp + 0x10], ebp
lea esp, [esp]
cmp dword [esp + 0x20], 0
jne 0x4b9a1c
push 0
push 0
push dword [esp + 0x20]
push edi
push 8
push 0
push 0
call ebx
push 0
push 0
push dword [esp + 0x3c]
push edi
push 6
push 0
push 0
call ebx
add esp, 0x38
mov eax, dword [esp + 0x3c]
dec eax
add eax, ebp
push eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
push edi
push esi
mov eax, dword [eax + 0x568]
call eax
add esp, 0x10
dec ebp
dec dword [esp + 0x10]
mov edi, eax
jne 0x4b99f0
mov dword [esp + 0x10], edi
test edi, edi
je 0x4b9d72
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004b77e0
add esp, 0xc
test eax, eax
jne 0x4b9d72
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004b77e0
add esp, 0xc
test eax, eax
jne 0x4b9d72
mov eax, dword [esp + 0x40]
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
adc dword [esp + 0x34], eax
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004b7760
mov edi, eax
add esp, 8
test edi, edi
je 0x4b9d72
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004b7760
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4b9d72
push edi
lea eax, [esp + 0x28]
push eax
push esi
call fcn.004d25f0
add esp, 0xc
test eax, eax
je 0x4b9b10
mov dword [esp + 0x24], 0
xor edi, edi
push 0
push 0x56b6ac
push ebx
call fcn.00414c70
add esp, 0xc
test eax, eax
je 0x4b9b34
push ebx
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004d25f0
add esp, 0xc
test eax, eax
je 0x4b9b2c
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x4b9b38
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4b9ae1
push edi
push esi
call fcn.004d4280
add esp, 8
test eax, eax
jne 0x4b9adf
mov eax, dword [esp + 0x1c]
jmp 0x4b9b40
mov eax, dword [esp + 0x1c]
mov edi, eax
jmp 0x4b9b38
mov eax, dword [esp + 0x1c]
test edi, edi
je 0x4b9d74
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4b9b4f
cmp word [ecx + 2], 2
jmp 0x4b9b58
test eax, eax
je 0x4b9b5e
cmp word [eax + 2], 0xb
jne 0x4b9d74
test edi, edi
je 0x4b9b78
test eax, eax
je 0x4b9b78
push edi
push esi
call fcn.004d4280
add esp, 8
test eax, eax
jne 0x4b9d74
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004b7760
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4b9d74
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004b7760
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4b9d74
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004b7760
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x4b9bd4
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004b7760
add esp, 8
test eax, eax
je 0x4b9d74
push 0
push 0xc
lea eax, [esp + 0x58]
push 0
push eax
call fcn.00414af0
add esp, 0x10
cmp byte [ebx], 0
je 0x4b9c4f
push 0
push str.__
push ebx
mov dword [esp + 0x5c], ebx
call fcn.004152b0
add esp, 0xc
mov dword [esp + 0x54], eax
test eax, eax
je 0x4b9c4f
push 0
push str.__
mov byte [eax], 0
call fcn.00414ee0
mov ecx, dword [esp + 0x5c]
push 0
add ecx, eax
push str.__
push ecx
mov dword [esp + 0x68], ecx
call fcn.004152b0
add esp, 0x14
mov dword [esp + 0x58], eax
test eax, eax
je 0x4b9c4f
push 0
push str.__
mov byte [eax], 0
call fcn.00414ee0
add esp, 8
add dword [esp + 0x58], eax
push 0
call fcn.00445731
add esp, 4
cmp edx, dword [esp + 0x34]
jg 0x4b9d74
jl 0x4b9c6f
cmp eax, dword [esp + 0x30]
ja 0x4b9d74
push 0
call fcn.00445731
add esp, 4
cmp edx, dword [esp + 0x44]
jl 0x4b9d74
jg 0x4b9c8f
cmp eax, dword [esp + 0x40]
jb 0x4b9d74
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004d1cb0
add esp, 8
test eax, eax
jne 0x4b9d74
push eax
push dword [esp + 0x18]
push ebp
push esi
call fcn.004d7110
add esp, 0x10
test eax, eax
jne 0x4b9cd2
push dword [esp + 0x14]
push esi
call fcn.004d17f0
add esp, 8
mov dword [esp + 0x14], 0
jmp 0x4b9d94
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xe0]
mov dword [eax + 0x394], ecx
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x2a0], 0
jne 0x4b9d22
cmp dword [ecx + 0x388], 0
jne 0x4b9d22
mov eax, dword [ecx + 0x39c]
cmp dword [eax + 0x24], 0
jne 0x4b9d22
mov dword [ecx + 0x38c], 2
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x244]
mov dword [ecx + 0x384], eax
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x20], 0
mov dword [ecx + 0x390], 0
mov eax, dword [esp + 0x14]
mov dword [esi + 0xe0], eax
jne 0x4b9d53
push 0x1f
push dword [esp + 0x2c]
add eax, 2
push eax
call fcn.004cfc90
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [0x58fc48]
test ecx, ecx
je 0x4b9d78
cmp byte [ecx], 0x30
jle 0x4b9d78
push str.borrow
push esi
call fcn.004cf3e0
add esp, 8
jmp 0x4b9d74
xor edi, edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b9d94
mov dword [eax + 0x330], 0
mov eax, dword [esp + 0x14]
mov dword [eax + 0x334], 0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4b9da5
push eax
call fcn.004bace0
add esp, 4
test edi, edi
je 0x4b9db3
push edi
push esi
call fcn.004ce6f0
add esp, 8
mov ecx, dword [esp + 0xbc]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424604
add esp, 0xb0
ret