Function at 0x59806186
Capabilities:
Access peb ldr_data

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x88
mov eax, dword [0x5985782d]
mov dword [ebp - 0x3c], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0xc]
lea edi, [eax + 0xc]
cmp edi, ebx
je 0x59806202
mov edx, dword [ebx + 0x30]
movzx eax, word [edx]
test ax, ax
je 0x598067a6
add edx, 2
xor ecx, ecx
lea esi, [esi]
lea esi, [esi]
lea esi, [eax - 0x41]
cmp si, 0x19
ja 0x598061e5
add eax, 0x20
movzx eax, ax
add edx, 2
add ecx, eax
movzx eax, word [edx - 2]
test ax, ax
jne 0x598061d6
cmp dword [ebp - 0x3c], ecx
je 0x598067b6
mov ebx, dword [ebx]
cmp edi, ebx
jne 0x598061b8
mov dword [ebp - 0x3c], 0
mov ecx, dword [0x5985780d]
mov esi, dword [ebp - 0x3c]
mov edx, dword [0x5985781d]
mov eax, dword [0x59857805]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.598060c6
mov dword [esp], 0
mov dword [ebp - 0x40], eax
mov eax, dword [0x59857825]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ecx, dword [0x5985780d]
mov edi, eax
mov edx, dword [0x59857855]
sub esp, 8
mov eax, dword [0x59857805]
mov dword [esp + 4], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.598060c6
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], 0
call eax
mov ecx, dword [str.jnerh]
sub esp, 0xc
mov edx, dword [0x59857835]
cmp word [edi + eax*2 - 2], dx
je 0x598062bc
lea esi, [esi]
xor ebx, ebx
mov edx, dword [0x59857835]
mov word [edi + eax*2], bx
sub eax, 1
cmp word [edi + eax*2 - 2], dx
jne 0x598062a6
movsx dx, byte [ecx]
add ecx, 1
lea eax, [edi + eax*2]
test dl, dl
je 0x598062db
mov word [eax], dx
movsx dx, byte [ecx]
add eax, 2
add ecx, 1
test dl, dl
jne 0x598062ca
mov ecx, dword [0x5985780d]
mov esi, dword [ebp - 0x3c]
mov edx, dword [0x59857801]
mov eax, dword [0x59857805]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.598060c6
mov ebx, dword [0x59857821]
mov dword [esp], edi
mov ecx, dword [0x59857849]
mov dword [esp + 0x18], 0
mov edx, dword [0x5985783d]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], edx
call eax
mov ecx, dword [0x5985780d]
mov ebx, eax
mov edx, dword [0x59857809]
sub esp, 0x1c
mov eax, dword [0x59857805]
mov dword [esp + 4], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.598060c6
mov dword [esp + 4], 0
mov dword [esp], ebx
call eax
mov esi, eax
mov eax, dword [0x59857805]
sub esp, 8
cmp eax, esi
je 0x598067c6
mov ecx, dword [0x5985780d]
mov edx, dword [0x59857839]
mov eax, dword [0x59857805]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.598060c6
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call eax
sub esp, 0x14
test eax, eax
je 0x598067c6
mov eax, dword [ebp - 0x2c]
add eax, edi
mov dword [ebp - 0x44], eax
mov eax, dword [0x59857811]
lea esi, [edi + eax]
mov dword [ebp - 0x6c], eax
mov ebx, dword [esi]
lea ecx, [esi + 8]
mov eax, dword [esi + 4]
mov dword [ebp - 0x48], eax
test ebx, ebx
je 0x59806465
lea eax, [ebx - 1]
cmp eax, 2
jbe 0x5980683a
mov eax, ebx
movd xmm3, dword [ebp - 0x48]
xor edx, edx
shr eax, 2
mov dword [ebp - 0x40], eax
mov eax, ecx
pshufd xmm1, xmm3, 0
lea esi, [esi]
nop
movdqu xmm0, xmmword [eax]
add edx, 1
add eax, 0x10
paddd xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
cmp dword [ebp - 0x40], edx
jne 0x59806426
mov eax, ebx
and eax, 0xfffffffc
lea ecx, [ecx + eax*4]
cmp ebx, eax
je 0x59806465
mov edx, dword [ebp - 0x48]
add dword [ecx], edx
lea edx, [eax + 1]
cmp ebx, edx
jbe 0x59806465
add eax, 2
mov edx, dword [ebp - 0x48]
add dword [ecx + 4], edx
cmp ebx, eax
jbe 0x59806465
add dword [ecx + 8], edx
mov eax, dword [0x59857845]
lea ebx, [esi + eax]
mov dword [ebp - 0x70], eax
mov eax, dword [0x5985780d]
cmp byte [ebx + 1], 0
mov esi, dword [0x5985780d]
mov dword [ebp - 0x40], eax
lea eax, [ebx + 1]
je 0x598067fa
xor edx, edx
lea esi, [esi]
nop
add edx, 1
cmp byte [ebx + edx + 1], 0
jne 0x59806496
mov dword [ebp - 0x48], ebx
add edx, eax
xor ecx, ecx
mov ebx, esi
movzx esi, byte [eax]
imul ecx, ebx
add eax, 1
add ecx, esi
cmp eax, edx
jne 0x598064a9
mov ebx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x40]
mov dword [esp + 8], ecx
mov eax, dword [0x59857805]
mov dword [esp + 0xc], esi
mov esi, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.598060c6
mov dword [ebp - 0x50], eax
movsx eax, byte [ebx]
add ebx, eax
mov dword [ebp - 0x48], eax
mov eax, dword [0x5985780d]
cmp byte [ebx + 1], 0
mov esi, dword [0x5985780d]
mov dword [ebp - 0x40], eax
lea eax, [ebx + 1]
je 0x5980682b
xor edx, edx
lea esi, [esi]
add edx, 1
cmp byte [ebx + edx + 1], 0
jne 0x59806506
mov dword [ebp - 0x4c], ebx
add edx, eax
xor ecx, ecx
mov ebx, esi
movzx esi, byte [eax]
imul ecx, ebx
add eax, 1
add ecx, esi
cmp eax, edx
jne 0x59806519
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x40]
mov dword [esp + 8], ecx
and al, 8
mov eax, dword [0x59857805]
mov dword [esp + 0xc], esi
mov esi, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.598060c6
movsx esi, byte [ebx]
mov dword [ebp - 0x40], eax
add ebx, esi
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp - 0x50]
lea eax, [ebx + 1]
mov dword [esp], eax
call esi
movsx esi, byte [ebx]
mov dword [ebp - 0x28], 0
mov ecx, eax
sub esp, 4
mov dword [ebp - 0x64], ecx
lea eax, [ebx + esi]
mov dword [ebp - 0x50], esi
mov esi, dword [0x59857819]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x54], esi
add esi, eax
mov dword [ebp - 0x60], ebx
mov ebx, dword [eax + 8]
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x74], esi
add esi, ebx
mov edx, dword [ecx + eax + 0x2c]
mov dword [ebp - 0x5c], esi
lea esi, [ebp - 0x28]
mov eax, dword [0x59857815]
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov dword [ebp - 0x68], edx
add edx, ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], edx
mov dword [esp], edx
call eax
lea eax, [ebx - 1]
mov ecx, dword [ebp - 0x64]
sub esp, 0x10
test ebx, ebx
mov dword [ebp - 0x58], eax
je 0x59806719
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x54]
add edx, dword [ebp - 0x70]
add eax, edx
add eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x50]
lea edx, [esi + edx + 0x10]
add edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x50]
add eax, edi
mov esi, dword [ebp - 0x68]
add edx, edi
mov edi, dword [ebp - 0x3c]
lea ecx, [ecx + esi + 0x10]
cmp edi, edx
setae dl
cmp eax, ecx
setae cl
or dl, cl
je 0x59806806
cmp dword [ebp - 0x58], 0xe
jbe 0x59806806
mov esi, dword [ebp - 0x74]
mov ecx, ebx
mov edx, edi
and ecx, 0xfffffff0
add ecx, eax
lea esi, [esi]
nop
movdqu xmm2, xmmword [eax]
add eax, 0x10
add edx, 0x10
movups xmmword [edx - 0x10], xmm2
cmp eax, ecx
jne 0x59806636
mov eax, dword [ebp - 0x3c]
mov edx, ebx
mov ecx, dword [ebp - 0x58]
and edx, 0xfffffff0
add esi, edx
add eax, edx
sub ecx, edx
cmp edx, ebx
je 0x59806719
movzx edx, byte [esi]
mov byte [eax], dl
test ecx, ecx
je 0x59806719
movzx edx, byte [esi + 1]
mov byte [eax + 1], dl
cmp ecx, 1
je 0x59806719
movzx edx, byte [esi + 2]
mov byte [eax + 2], dl
cmp ecx, 2
je 0x59806719
movzx edx, byte [esi + 3]
mov byte [eax + 3], dl
cmp ecx, 3
je 0x59806719
movzx edx, byte [esi + 4]
mov byte [eax + 4], dl
cmp ecx, 4
je 0x59806719
movzx edx, byte [esi + 5]
mov byte [eax + 5], dl
cmp ecx, 5
je 0x59806719
movzx edx, byte [esi + 6]
mov byte [eax + 6], dl
cmp ecx, 6
je 0x59806719
movzx edx, byte [esi + 7]
mov byte [eax + 7], dl
cmp ecx, 7
je 0x59806719
movzx edx, byte [esi + 8]
mov byte [eax + 8], dl
cmp ecx, 8
je 0x59806719
movzx edx, byte [esi + 9]
mov byte [eax + 9], dl
cmp ecx, 9
je 0x59806719
movzx edx, byte [esi + 0xa]
mov byte [eax + 0xa], dl
cmp ecx, 0xa
je 0x59806719
movzx edx, byte [esi + 0xb]
mov byte [eax + 0xb], dl
cmp ecx, 0xb
je 0x59806719
movzx edx, byte [esi + 0xc]
mov byte [eax + 0xc], dl
cmp ecx, 0xc
je 0x59806719
movzx edx, byte [esi + 0xd]
mov byte [eax + 0xd], dl
cmp ecx, 0xd
je 0x59806719
movzx edx, byte [esi + 0xe]
mov byte [eax + 0xe], dl
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x28]
inc ebp
fmul dword [ecx + 0x4489243c]
and al, 8
mov eax, dword [ebp - 0x40]
call eax
mov ecx, dword [ebp - 0x60]
xor eax, eax
mov edx, dword [sym.madExcept_.bpl__Madexcept_ShowOuterExceptDetails]
sub esp, 0x10
mov ebx, dword [ebp - 0x44]
add ecx, edi
cmp byte [edx], 0
je 0x59806832
lea esi, [esi]
mov edx, dword [sym.madExcept_.bpl__Madexcept_ShowOuterExceptDetails]
movsx dx, byte [edx + eax]
mov word [ebx + eax*2], dx
mov edx, dword [sym.madExcept_.bpl__Madexcept_ShowOuterExceptDetails]
add eax, 1
cmp byte [edx + eax], 0
jne 0x59806756
mov edi, dword [ebp - 0x44]
lea eax, [edi + eax*2]
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x44]
mov byte [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call ecx
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
xor ecx, ecx
cmp dword [ebp - 0x3c], ecx
jne 0x598061fc
lea esi, [esi]
nop
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x3c], eax
jmp 0x59806209
mov eax, dword [0x59857831]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
xor ecx, ecx
jmp 0x598064bb
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x74]
lea esi, [esi]
movzx edx, byte [esi]
add esi, 1
add eax, 1
mov byte [eax - 1], dl
cmp ecx, esi
jne 0x59806816
jmp 0x59806719
xor ecx, ecx
jmp 0x5980652b
mov eax, dword [ebp - 0x44]
jmp 0x5980677a
xor eax, eax
jmp 0x59806449