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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xfb4
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
lea eax, [esp + 0xdc4]
push eax
lea eax, [esp + 0x1c8]
mov dword [esp + 0x4c], 0x4fa110
push eax
xor esi, esi
push edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x50], esi
call fcn.004bb120
add esp, 0x10
test eax, eax
je 0x4bb85e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0
lea eax, [esp + 0xdc0]
mov dword [esp + 0x54], eax
je 0x4bc1c4
mov ebx, dword [ebp + 0xc]
mov cl, byte [edi]
mov eax, dword [ebp + 8]
cmp cl, 0x25
je 0x4bb8b1
nop
push eax
movzx eax, cl
push eax
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
mov cl, byte [edi + 1]
inc edi
inc esi
mov dword [esp + 0x20], esi
test cl, cl
je 0x4bc1c4
mov eax, dword [ebp + 8]
cmp cl, 0x25
jne 0x4bb880
jmp 0x4bc1bb
inc edi
cmp byte [edi], 0x25
jne 0x4bb8d3
push eax
push 0x25
inc edi
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
mov dword [esp + 0x20], esi
jmp 0x4bc1bb
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004bb010
mov ecx, dword [esp + 0x48]
add esp, 8
test eax, eax
jne 0x4bb8ed
mov eax, ecx
jmp 0x4bb8ee
dec eax
inc ecx
mov dword [esp + 0x40], ecx
lea ecx, [eax + eax*2]
mov edx, dword [esp + ecx*8 + 0x1c4]
mov eax, dword [esp + ecx*8 + 0x1c8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x48], eax
test edx, 0x4000
je 0x4bb942
inc dword [esp + 0x40]
lea eax, [eax + eax*2]
mov edi, dword [esp + eax*8 + 0x1d0]
mov dword [esp + 0x38], edi
test edi, edi
jns 0x4bb948
neg edi
and edx, 0xfffffeff
or edx, 4
mov dword [esp + 0x38], edi
mov dword [esp + ecx*8 + 0x1c4], edx
jmp 0x4bb948
mov edi, eax
mov dword [esp + 0x38], eax
mov edx, dword [esp + ecx*8 + 0x1c4]
mov eax, edx
and eax, 0x10000
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
je 0x4bb9ac
mov eax, dword [esp + ecx*8 + 0x1cc]
inc dword [esp + 0x40]
lea eax, [eax + eax*2]
mov ecx, dword [esp + eax*8 + 0x1d0]
mov dword [esp + 0x24], ecx
test ecx, ecx
jns 0x4bb984
or ecx, 0xffffffff
mov dword [esp + 0x24], ecx
mov eax, edx
shr eax, 3
and eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + eax*8 + 0x1c0]
dec eax
cmp eax, 6
ja case.0x4bb9a5.5
jmp dword [eax*4 + 0x4bc1d8]
test edx, 0x8000
je 0x4bb97d
mov ecx, dword [esp + ecx*8 + 0x1cc]
jmp 0x4bb980
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + eax*8 + 0x1d0]
mov eax, dword [esp + eax*8 + 0x1d4]
mov dword [esp + 0x28], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x48], eax
test edx, 0x20000
je 0x4bba62
and edx, 4
mov dword [esp + 0x34], edx
jne 0x4bba0d
dec edi
test edi, edi
jle 0x4bba0d
push dword [ebp + 8]
push 0x20
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
dec edi
inc esi
test edi, edi
jg 0x4bb9f4
mov eax, dword [esp + 0x28]
push dword [ebp + 8]
movzx eax, al
push eax
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
cmp dword [esp + 0x34], 0
mov dword [esp + 0x20], esi
je case.0x4bb9a5.5
dec edi
test edi, edi
jle case.0x4bb9a5.5
nop
push dword [ebp + 8]
push 0x20
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
dec edi
mov dword [esp + 0x20], esi
test edi, edi
jg 0x4bba40
jmp case.0x4bb9a5.5
test edx, 0x400
je 0x4bba77
mov dword [esp + 0x3c], 8
jmp 0x4bbc9c
test edx, 0x800
je 0x4bbaa4
mov dword [esp + 0x44], str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
test edx, 0x1000
jne 0x4bba97
mov dword [esp + 0x44], 0x4fa110
mov dword [esp + 0x3c], 0x10
jmp 0x4bbc9c
mov dword [esp + 0x3c], 0xa
test edx, 0x200
jne 0x4bbc9c
mov edx, dword [esp + 0x48]
test edx, edx
jg 0x4bbc9c
mov eax, dword [esp + 0x28]
jl 0x4bbad2
test eax, eax
jae 0x4bbc9c
neg eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], eax
adc edx, 0
neg edx
mov dword [esp + 0x48], edx
jmp 0x4bbca4
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + eax*8 + 0x1d0]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4bbb3e
cmp ecx, 0xffffffff
je 0x4bbb1c
cmp ecx, 5
jge 0x4bbb1c
mov eax, 0x4ef2a4
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
jmp 0x4bbb62
mov eax, 0x4fa160
mov ecx, 5
mov dword [esp + 0x28], eax
and edx, 0xfffffff7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov dword [esp + eax*8 + 0x1c4], edx
jmp 0x4bbb62
cmp ecx, 0xffffffff
jne 0x4bbb55
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bbb48
sub ecx, edx
mov dword [esp + 0x24], ecx
cmp ecx, 0x7fffffff
jbe 0x4bbb62
mov ecx, 0x7fffffff
mov eax, dword [esp + 0x1c]
sub edi, ecx
mov eax, dword [esp + eax*8 + 0x1c4]
mov ecx, eax
and ecx, 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
je 0x4bbb9a
push dword [ebp + 8]
push 0x22
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
mov eax, dword [esp + 0x2c]
inc esi
mov dword [esp + 0x20], esi
and eax, 4
mov dword [esp + 0x2c], eax
jne 0x4bbbc5
test edi, edi
jle 0x4bbbc4
push dword [ebp + 8]
dec edi
push 0x20
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
mov dword [esp + 0x20], esi
test edi, edi
jg 0x4bbba7
dec edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4bbc00
mov ecx, dword [esp + 0x28]
mov al, byte [ecx]
test al, al
je 0x4bbc00
push dword [ebp + 8]
movzx eax, al
push eax
call ebx
mov ecx, dword [esp + 0x30]
add esp, 8
inc ecx
mov dword [esp + 0x28], ecx
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x4bbbd1
cmp dword [esp + 0x2c], 0
je 0x4bbc2d
test edi, edi
jle 0x4bbc2d
jmp 0x4bbc10
push dword [ebp + 8]
dec edi
push 0x20
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
mov dword [esp + 0x20], esi
test edi, edi
jg 0x4bbc10
cmp dword [esp + 0x30], 0
je case.0x4bb9a5.5
push dword [ebp + 8]
push 0x22
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
mov dword [esp + 0x20], esi
jmp case.0x4bb9a5.5
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + eax*8 + 0x1d0]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4bbed5
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x44], str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
test edx, 0x1000
jne 0x4bbc8c
mov dword [esp + 0x44], 0x4fa110
mov dword [esp + 0x30], 1
mov dword [esp + 0x48], 0
mov dword [esp + 0x2c], 0
cmp ecx, 0xffffffff
jne 0x4bbcb1
mov dword [esp + 0x24], 1
cmp dword [esp + 0x48], 0
lea edx, [esp + 0x1bc]
mov dword [esp + 0x1c], edx
ja 0x4bbcca
cmp dword [esp + 0x28], 0
jbe 0x4bbd0f
mov ebx, dword [esp + 0x28]
mov edi, edx
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
push 0
push esi
push edx
push ebx
call fcn.0040b4d0
mov dword [esp + 0x4c], ebx
mov ebx, eax
mov eax, dword [esp + 0x44]
mov al, byte [ecx + eax]
mov byte [edi], al
dec edi
test edx, edx
ja 0x4bbcd8
jb 0x4bbcfc
test ebx, ebx
jne 0x4bbcd8
mov esi, dword [esp + 0x20]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1bc]
mov eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x24]
add edi, eax
add ecx, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4bbd3e
cmp dword [esp + 0x3c], 8
jne 0x4bbd3e
test ecx, ecx
jg 0x4bbd42
mov byte [edx], 0x30
dec edx
mov dword [esp + 0x1c], edx
dec edi
test ecx, ecx
jle 0x4bbd51
sub edi, ecx
mov byte [edx], 0x30
dec ecx
dec edx
test ecx, ecx
jg 0x4bbd44
mov dword [esp + 0x1c], edx
test eax, eax
je 0x4bbd5f
cmp dword [esp + 0x3c], 0x10
jne 0x4bbd5f
sub edi, 2
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
test edx, edx
jne 0x4bbd6f
test al, 3
je 0x4bbd70
dec edi
mov ecx, eax
and ecx, 4
mov dword [esp + 0x38], ecx
jne 0x4bbdac
test eax, 0x100
jne 0x4bbdac
test edi, edi
jle 0x4bbdab
push dword [ebp + 8]
dec edi
push 0x20
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
mov dword [esp + 0x20], esi
test edi, edi
jg 0x4bbd86
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
dec edi
test edx, edx
je 0x4bbdb7
push dword [ebp + 8]
push 0x2d
jmp 0x4bbdcb
test al, 2
je 0x4bbdc2
push dword [ebp + 8]
push 0x2b
jmp 0x4bbdcb
test al, 1
je 0x4bbdde
push dword [ebp + 8]
push 0x20
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4bbe28
cmp dword [esp + 0x3c], 0x10
jne 0x4bbe28
push dword [ebp + 8]
push 0x30
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
test dword [esp + 0x34], 0x1000
push dword [ebp + 8]
je 0x4bbe11
push 0x58
jmp 0x4bbe13
push 0x78
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1cd
add esi, 2
mov dword [esp + 0x20], esi
cmp dword [esp + 0x38], 0
jne 0x4bbe5e
test dword [esp + 0x34], 0x100
je 0x4bbe5e
test edi, edi
jle 0x4bbe5d
lea ecx, [ecx]
push dword [ebp + 8]
dec edi
push 0x30
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
mov dword [esp + 0x20], esi
test edi, edi
jg 0x4bbe40
dec edi
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1bc]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, ecx
ja 0x4bbea0
push dword [ebp + 8]
movzx eax, byte [eax]
push eax
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1bc]
inc eax
inc esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
cmp eax, ecx
jbe 0x4bbe72
cmp dword [esp + 0x38], 0
je case.0x4bb9a5.5
test edi, edi
jle case.0x4bb9a5.5
push dword [ebp + 8]
dec edi
push 0x20
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
mov dword [esp + 0x20], esi
test edi, edi
jg 0x4bbeb3
jmp case.0x4bb9a5.5
sub edi, 5
and edx, 4
mov dword [esp + 0x34], edx
je 0x4bbeff
test edi, edi
jle 0x4bbefe
push dword [ebp + 8]
dec edi
push 0x20
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
test edi, edi
jg 0x4bbee5
dec edi
mov eax, str._nil_
mov dword [esp + 0x30], eax
push dword [ebp + 8]
movzx eax, byte [eax]
push eax
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
mov eax, dword [esp + 0x30]
inc esi
inc eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], eax
cmp byte [eax], 0
jne 0x4bbf08
cmp dword [esp + 0x34], 0
jne case.0x4bb9a5.5
test edi, edi
jle case.0x4bb9a5.5
push dword [ebp + 8]
dec edi
push 0x20
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc esi
mov dword [esp + 0x20], esi
test edi, edi
jg 0x4bbf43
jmp case.0x4bb9a5.5
mov eax, 0x25
lea ecx, [esp + 0x58]
mov word [esp + 0x58], ax
lea edi, [ecx + 1]
xor eax, eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov dword [esp + 0x62], eax
mov dword [esp + 0x66], eax
mov dword [esp + 0x6a], eax
mov dword [esp + 0x6e], eax
mov dword [esp + 0x72], eax
mov word [esp + 0x76], ax
lea eax, [esp + 0x59]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bbfa1
sub ecx, edi
mov dword [esp + 0x30], 0xffffffff
mov eax, 0x20
sub eax, ecx
mov dword [esp + 0x2c], eax
test edx, 0x2000
je 0x4bbfcb
mov eax, dword [esp + 0x48]
jmp 0x4bbfe1
test edx, 0x4000
je 0x4bbfe5
mov eax, dword [esp + 0x48]
lea eax, [eax + eax*2]
mov eax, dword [esp + eax*8 + 0x1d0]
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
test edx, 0x8000
je 0x4bc002
mov eax, dword [esp + edi*8 + 0x1cc]
jmp 0x4bc01a
cmp dword [esp + 0x28], 0
je 0x4bc01e
mov eax, dword [esp + edi*8 + 0x1cc]
lea eax, [eax + eax*2]
mov eax, dword [esp + eax*8 + 0x1d0]
mov dword [esp + 0x38], eax
test dl, 4
je 0x4bc032
lea ecx, [esp + 0x5a]
mov byte [esp + 0x59], 0x2d
mov dword [esp + 0x24], ecx
jmp 0x4bc036
mov ecx, dword [esp + 0x24]
test dl, 2
je 0x4bc043
mov byte [ecx], 0x2b
inc ecx
mov dword [esp + 0x24], ecx
test dl, 1
je 0x4bc050
mov byte [ecx], 0x20
inc ecx
mov dword [esp + 0x24], ecx
test dl, 8
je 0x4bc05d
mov byte [ecx], 0x23
inc ecx
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x30]
mov byte [ecx], 0
test eax, eax
js 0x4bc095
cmp eax, 0x146
jl 0x4bc074
mov eax, 0x145
push eax
push 0x4fa178
push dword [esp + 0x34]
push ecx
call fcn.004baec0
mov ecx, dword [esp + 0x34]
add esp, 0x10
add ecx, eax
sub dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x38]
test edx, edx
js 0x4bc0ec
fld qword [esp + edi*8 + 0x1d0]
mov ecx, 0x144
fld qword [0x4f3250]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4bc0c4
fdiv st(1), st(0)
dec ecx
fcom st(1)
fnstsw ax
test ah, 0x41
jnp 0x4bc0b8
fstp st(1)
fstp st(0)
cmp edx, ecx
jle 0x4bc0cf
lea edx, [ecx - 1]
mov eax, dword [esp + 0x24]
push edx
push str.._ld
push dword [esp + 0x34]
push eax
call fcn.004baec0
mov ecx, dword [esp + 0x34]
add esp, 0x10
add ecx, eax
mov eax, dword [esp + 0x34]
test al, 0x20
je 0x4bc0f8
mov byte [ecx], 0x6c
inc ecx
test eax, 0x40000
je 0x4bc10c
shr eax, 7
not al
and al, 0x20
or al, 0x45
mov byte [ecx], al
jmp 0x4bc123
test eax, 0x80000
je 0x4bc120
shr eax, 7
not al
and al, 0x20
or al, 0x47
mov byte [ecx], al
jmp 0x4bc123
mov byte [ecx], 0x66
fld qword [esp + edi*8 + 0x1d0]
lea eax, [esp + 0x58]
sub esp, 8
mov byte [ecx + 1], 0
inc ecx
fstp qword [esp]
push eax
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edi, [esp + 0x78]
cmp byte [esp + 0x78], 0
je case.0x4bb9a5.5
push dword [ebp + 8]
movzx eax, byte [edi]
push eax
call ebx
add esp, 8
cmp eax, 0xffffffff
je 0x4bc1c4
inc edi
inc esi
mov dword [esp + 0x20], esi
cmp byte [edi], 0
jne 0x4bc156
jmp case.0x4bb9a5.5
test dl, 0x40
je 0x4bc18e
mov ecx, dword [esp + 0x1c]
mov eax, esi
cdq
mov ecx, dword [esp + ecx*8 + 0x1d0]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp case.0x4bb9a5.5
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + eax*8 + 0x1d0]
test dl, 0x20
je 0x4bc1a2
mov dword [eax], esi
jmp case.0x4bb9a5.5
test dl, 0x10
jne 0x4bc1ab
mov dword [eax], esi
jmp case.0x4bb9a5.5
mov word [eax], si
mov edx, dword [esp + 0x54]
mov edi, dword [edx]
add edx, 4
mov dword [esp + 0x54], edx
cmp byte [edi], 0
jne 0x4bb875
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret