Function at 0x10012c90
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1005fa60]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], edx
test esi, esi
jne 0x10012cbe
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x10012cdf
cmp esi, 0xffffffff
je 0x10012cdf
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x10012cf1
push str.77CaJXykRKiJILOiWnDEXG1qJcow2kEt7q7XkjBnDeec70YZvUVS1CKg808sPQ
push 0
call fcn.10010a30
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
je 0x10012d1c
push str.7GCeb7eO4CRUXf3XXprHZku6AUx7L2W_1KF0hylAO8ObvYaSEiarcZgyrm_jQ
push 0
call fcn.10010a30
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [esi + 0x3c]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x10012d34
push str.7GCeb7eO4CRUXf3XXprHZku6AUx7L2W_1KF0hac7wUYP8VXUmduv9SpDGR
jmp 0x1001321a
movzx eax, word [ebx + 4]
mov ecx, 0x200
cmp ax, cx
je 0x10013215
mov ecx, 0x8664
cmp ax, cx
je 0x10013215
mov eax, 0x20b
cmp word [ebx + 0x18], ax
je 0x10013215
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10012d77
push str.7GCeb7eO4CRUXf3XXprHZku6AU27euS60uOgCzKJ64fa_QoRzxFqQ
jmp 0x1001321a
mov ecx, dword [ebx + 0x7c]
mov dword [ebp - 0x18], ecx
lea ecx, [esi + eax]
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x14], ecx
cmp eax, dword [ecx + 0x18]
jb 0x10013224
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x1c]
add eax, esi
mov dword [ebp - 0x30], eax
add edx, esi
mov eax, dword [ecx + 0x24]
add eax, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x14]
shl eax, 2
push eax
push edx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10013224
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
shl eax, 2
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10013224
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
add eax, eax
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10013224
mov eax, dword [ebx + 0x50]
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov al, byte [esi + 0xff4]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ecx
cmp al, 0x7a
jne 0x10012e2e
cmp byte [esi + 0xff5], 0x9c
jne 0x10012e2e
cmp byte [esi + 0xff6], 0x77
jne 0x10012e2e
cmp byte [esi + 0xff7], 0xb2
jne 0x10012e2e
mov dword [ebp - 0x28], 1
jmp 0x10012e53
test al, al
jne 0x10012e53
cmp byte [esi + 0xff5], cl
jne 0x10012e53
cmp byte [esi + 0xff6], cl
jne 0x10012e53
cmp byte [esi + 0xff7], cl
mov eax, 1
cmove ecx, eax
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, edx
shr eax, 0x10
test eax, eax
jne 0x10012fd7
mov eax, dword [ebp - 0x14]
mov ebx, edx
sub ebx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
cmp ebx, ecx
jae 0x10013202
cmp dword [ebp - 0x28], edi
je 0x10012eca
mov ecx, dword [esi + 0xff8]
test ecx, ecx
je 0x10013202
xor ecx, 0xafcd32b9
mov ecx, dword [ecx + ebx*4]
test ecx, ecx
je 0x10012ed4
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
jb 0x100130b8
add eax, dword [ebp - 0x18]
cmp ecx, eax
jae 0x100130b8
push edx
push ecx
push esi
call fcn.10012450
add esp, 0xc
mov edi, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ebx*4]
test eax, eax
jne 0x10012ee9
xor edi, edi
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
cmp eax, edx
jae 0x10012f19
lea edi, [eax + esi]
mov eax, dword [ebp - 0x20]
add eax, esi
push eax
push dword [ebp - 0x24]
push ecx
push esi
call fcn.100122c0
add esp, 0x10
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
add edx, dword [ebp - 0x18]
cmp eax, edx
jb 0x100130f2
mov edx, dword [ebp - 0x20]
cmp eax, edx
jae 0x10012f52
lea edi, [eax + esi]
lea eax, [edx + esi]
push eax
push dword [ebp - 0x24]
push ecx
push esi
call fcn.100122c0
add esp, 0x10
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
push eax
push ebx
push str.5bhhS_FcakkKhT70QTzwroTgZsGdKoM0phNm_VRGWomsxkiE1DZ3gaMTXqUY3Y5v8rsXSNg5oys
push 0
call fcn.10010a30
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x2c]
push dword [eax + 0x14]
push ebx
push esi
call fcn.10012600
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x10013202
mov edi, dword [ebp - 8]
test edi, edi
je 0x100131ce
lea eax, [ebp - 8]
push eax
push 4
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100131c0
lea eax, [ebp - 8]
xor edi, 0xafcd32b9
push eax
push dword [ebp - 8]
mov dword [esi + 0xff8], edi
push 0x1000
push esi
mov dword [esi + 0xff4], 0xb2779c7a
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100131ce
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x20], edi
jne 0x10012fe9
push str.3iO1AvJALNK5mPB6hZYqjyC8ICfYOWh7qoDmZPT2C0e3gTNphHOstB2O2QRV0l1MNrsOCPeQFyKrINV15k3xnQUvzO0q9U
jmp 0x1001321a
mov ecx, dword [ecx + 0x18]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x10013202
lea esp, [esp]
mov ecx, dword [ebp - 0x34]
movzx ecx, word [ecx + eax*2]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ecx + eax*4]
add ebx, esi
cmp ebx, esi
jb 0x10013052
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
add ecx, esi
cmp ecx, ebx
jb 0x10013052
mov ecx, ebx
mov eax, edx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013046
test dl, dl
je 0x10013042
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013046
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013026
xor eax, eax
jmp 0x1001304b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001306e
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x38]
jb 0x10013000
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x28], edi
je 0x100130ce
mov ecx, dword [esi + 0xff8]
test ecx, ecx
je 0x100130ce
mov eax, dword [ebp - 8]
xor ecx, 0xafcd32b9
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
jb 0x100130b8
add eax, dword [ebp - 0x18]
cmp ecx, eax
jae 0x100130b8
mov edx, dword [ebp - 0x10]
push edx
push ecx
push esi
call fcn.10012450
add esp, 0xc
mov edi, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
lea edi, [esi + ecx]
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + eax*4]
cmp eax, ecx
jae 0x100130e8
lea edi, [eax + esi]
mov eax, dword [ebp - 0x20]
add eax, esi
jmp 0x10013120
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
cmp eax, ecx
jae 0x10013113
mov edx, dword [ebp - 0x10]
push edx
push eax
push esi
call fcn.10012450
add esp, 0xc
mov edi, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
jae 0x10013144
lea edi, [eax + esi]
lea eax, [ecx + esi]
push eax
mov eax, dword [ebp - 0x14]
push edx
push dword [eax + 0x14]
push esi
call fcn.100122c0
add esp, 0x10
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
push eax
push ebx
push str.OpunpAiyZ25t2VpfN6wPIuKHfBGArcpbXdc434kXhTvHQCyip79RWIebNo7rfW5q1KgNXXHfb7U
push 4
call fcn.10010a30
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x2c]
push dword [eax + 0x14]
push dword [ebp - 8]
push esi
call fcn.10012600
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x10013202
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x100131ce
lea eax, [ebp - 0xc]
push eax
push 4
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100131c0
lea eax, [ebp - 0xc]
xor edi, 0xafcd32b9
push eax
push dword [ebp - 0xc]
mov dword [esi + 0xff8], edi
push 0x1000
push esi
mov dword [esi + 0xff4], 0xb2779c7a
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100131ce
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x1c]
cmp ebx, ecx
jb 0x100131ff
mov eax, dword [ebp - 0x18]
add eax, ecx
cmp ebx, eax
jae 0x100131ff
mov edx, dword [ebp - 0x10]
push edx
push ebx
push esi
call fcn.10012450
add esp, 0xc
mov edi, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
lea edi, [esi + ebx]
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
push str.kLH0Gs1fxXd67njWJ141FvqyCe1oQdR6sQjH0MZcTFltK4G2WlqxQZSSLLaXV3vYGVdqWII1gwl4v3Ds1aOpi3mzmX39hCCyxkONdJAI5tYOgWlqlpIqePKQTb8
push 0
call fcn.10010a30
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1001811f
mov esp, ebp
pop ebp
ret