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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003adf2
mov eax, dword fs:[0]
push eax
sub esp, 0x610
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x608], eax
push ebx
push esi
push edi
mov eax, dword [0x10043330]
xor eax, esp
push eax
lea eax, [esp + 0x620]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x100126cb
xor ebx, ebx
push 0x3f
lea edx, [esp + 0x159]
push ebx
push edx
mov byte [esp + 0x160], bl
call fcn.1002fb20
mov edi, 0xf
add esp, 0xc
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
lea eax, [esp + 0xb8]
push eax
lea esi, [esp + 0x28]
mov dword [esp + 0x62c], ebx
call fcn.10018200
add esp, 4
push 0xffffffffffffffff
lea ecx, [ebx + 8]
lea esi, [esp + 0x28]
lea edx, [esp + 0xbc]
call fcn.10015bc0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0x634], 1
call fcn.10002de0
mov byte [esp + 0x628], bl
cmp dword [esp + 0x3c], 0x10
jb 0x10012664
mov ecx, dword [esp + 0x28]
push ecx
call fcn.1002b322
add esp, 4
push 0x7f
lea edx, [esp + 0x199]
push ebx
push edx
mov byte [esp + 0x1a0], bl
call fcn.1002fb20
add esp, 0xc
lea ecx, [esp + 0x194]
call fcn.100186d0
test al, al
jne 0x100126d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x18]
push eax
push 0x2f0
push str._RBW:_d_Error_Code:_d
add esi, 0x408
call fcn.10028c00
add esp, 0xc
cmp dword [esp + 0xd0], 0x10
jb 0x100126cb
mov eax, dword [esp + 0xbc]
push eax
call fcn.1002b322
add esp, 4
xor al, al
jmp 0x10012e01
lea eax, [esp + 0x194]
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100126f1
sub eax, edx
push eax
lea ecx, [esp + 0x198]
push ecx
lea ecx, [esp + 0xa4]
call fcn.10002fc0
lea edi, [esp + 0x9c]
mov byte [esp + 0x628], 2
call fcn.10019c30
mov eax, dword [esp + 0xbc]
mov esi, 0x10
cmp dword [esp + 0xd0], esi
jae 0x10012741
lea eax, [esp + 0xbc]
mov edx, dword [esp + 0xcc]
push edx
push eax
lea eax, [esp + 0x15c]
push eax
call fcn.100304b0
mov eax, dword [esp + 0xac]
add esp, 0xc
cmp dword [esp + 0xb4], esi
jae 0x10012771
lea eax, [esp + 0xa0]
mov ecx, dword [eax]
mov dword [esp + 0x15c], ecx
mov edx, dword [eax + 4]
mov eax, dword [str.6666_66_66]
mov ecx, dword [0x1003e484]
mov dword [esp + 0xf4], eax
mov al, byte [0x1003e48a]
mov byte [esp + 0xfe], al
xor eax, eax
mov dword [esp + 0x160], edx
mov dx, word [0x1003e488]
mov dword [esp + 0xf8], ecx
mov ecx, dword [str.8888_88_88]
mov dword [esp + 0xff], eax
mov dword [esp + 0x103], eax
mov dword [esp + 0x107], eax
mov dword [esp + 0x10b], eax
mov dword [esp + 0x10f], eax
mov byte [esp + 0x113], al
mov ax, word [0x1003e494]
mov word [esp + 0xfc], dx
mov edx, dword [0x1003e490]
mov dword [esp + 0x114], ecx
mov cl, byte [0x1003e496]
mov word [esp + 0x11c], ax
xor eax, eax
mov dword [esp + 0x118], edx
mov byte [esp + 0x11e], cl
mov dword [esp + 0x11f], eax
mov dword [esp + 0x123], eax
mov dword [esp + 0x127], eax
mov dword [esp + 0x12b], eax
mov dword [esp + 0x12f], eax
mov byte [esp + 0x133], al
mov dword [esp + 0x134], 0x393939
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], eax
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
push ebx
push 0x16
lea ecx, [esp + 0x50]
mov byte [esp + 0x630], 3
call fcn.10003660
mov eax, dword [esp + 0x60]
cmp eax, esi
mov ecx, dword [esp + 0x4c]
jae 0x100128b5
lea ecx, [esp + 0x4c]
mov edx, dword [esp + 0x10]
push 0x16
push edx
push eax
push ecx
call fcn.1002b9dc
mov eax, dword [esp + 0x5c]
add esp, 0x10
cmp dword [esp + 0x60], esi
mov dword [esp + 0x5c], 0x16
jae 0x100128dc
lea eax, [esp + 0x4c]
push 1
mov byte [eax + 0x16], bl
push 0x1003e414
lea eax, [esp + 0x50]
call fcn.10015ee0
lea eax, [esp + 0x154]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10012900
sub eax, edx
push eax
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x50]
call fcn.10015ee0
push 1
push 0x1003e414
lea eax, [esp + 0x50]
call fcn.10015ee0
lea eax, [esp + 0xf4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10012937
sub eax, edx
push eax
lea ecx, [esp + 0xf8]
push ecx
lea eax, [esp + 0x50]
call fcn.10015ee0
push 1
push 0x1003e414
lea eax, [esp + 0x50]
call fcn.10015ee0
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10012970
sub eax, edx
push eax
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x50]
call fcn.10015ee0
push 1
push 0x1003e414
lea eax, [esp + 0x50]
call fcn.10015ee0
lea eax, [esp + 0x134]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100129a7
sub eax, edx
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x50]
call fcn.10015ee0
cmp dword [esp + 0x60], esi
mov edi, dword [esp + 0x4c]
jae 0x100129d2
lea edi, [esp + 0x4c]
mov edx, dword [esp + 0x5c]
xor ecx, ecx
xor eax, eax
cmp edx, ebx
jle 0x100129ed
mov edi, edi
movzx esi, byte [edi + eax]
add eax, 1
add ecx, esi
cmp eax, edx
jl 0x100129e0
xor eax, eax
push ecx
push 0x1003e47c
lea ecx, [eax + 0x20]
lea edi, [esp + 0xdc]
mov byte [esp + 0xdc], bl
mov dword [esp + 0xdd], eax
mov dword [esp + 0xe1], eax
mov dword [esp + 0xe5], eax
mov dword [esp + 0xe9], eax
mov dword [esp + 0xed], eax
mov dword [esp + 0xf1], eax
mov dword [esp + 0xf5], eax
mov word [esp + 0xf9], ax
mov byte [esp + 0xfb], al
call fcn.10004080
mov eax, edi
add esp, 8
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10012a63
sub eax, esi
push eax
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0x6c]
call fcn.10002fc0
push 1
push 0x1003e414
lea eax, [esp + 0x6c]
mov byte [esp + 0x630], 4
call fcn.10015ee0
push ebx
lea edx, [esp + 0x4c]
push edx
or eax, 0xffffffff
lea esi, [esp + 0x6c]
call fcn.10015df0
push 0x1ff
lea eax, [esp + 0x219]
push ebx
push eax
mov byte [esp + 0x220], bl
call fcn.1002fb20
mov edi, dword [esp + 0x84]
add esp, 0xc
cmp dword [esp + 0x7c], 0x10
jb 0x10012adf
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x10], ecx
jmp 0x10012ae7
lea edx, [esp + 0x68]
mov dword [esp + 0x10], edx
push 0x200
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x10012b12
mov ebx, dword [esp + 0x10]
lea esi, [esp + 0x214]
mov eax, edi
call fcn.1002b030
xor ebx, ebx
push 8
push str.OFFLINE
lea ecx, [esp + 0x88]
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
call fcn.10002fc0
lea eax, [esp + 0x214]
mov byte [esp + 0x628], 5
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10012b50
sub eax, edx
push eax
lea ecx, [esp + 0x218]
push ecx
lea eax, [esp + 0x88]
call fcn.10015ee0
push 0x1ff
lea edx, [esp + 0x419]
push ebx
push edx
mov byte [esp + 0x420], bl
call fcn.1002fb20
mov edi, dword [esp + 0x90]
add esp, 0xc
cmp dword [esp + 0x98], 0x10
mov dword [esp + 0x14], 0x200
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov edx, 0x1003e2c8
mov esi, 0x40
jae 0x10012bc3
lea edi, [esp + 0x84]
mov ecx, dword [esp + 0x94]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x418]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
call fcn.1002ab20
push 0x200
lea ecx, [esp + 0x218]
push ebx
push ecx
call fcn.1002fb20
mov edi, dword [esp + 0x20]
add esp, 0xc
push 0x200
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x10012c34
lea esi, [esp + 0x214]
mov eax, edi
lea ebx, [esp + 0x414]
call fcn.1002b030
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp dword [ecx], eax
mov edi, 0x10
mov dword [ecx], eax
jae 0x10012d31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x18]
push eax
push 0x32b
push str._RBW:_d_Error_Code:_d
add esi, 0x408
call fcn.10028c00
add esp, 0xc
cmp dword [esp + 0x98], edi
jb 0x10012c87
mov eax, dword [esp + 0x84]
push eax
call fcn.1002b322
add esp, 4
cmp dword [esp + 0x7c], edi
mov esi, 0xf
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
jb 0x10012cb4
mov ecx, dword [esp + 0x68]
push ecx
call fcn.1002b322
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
jb 0x10012cd3
mov edx, dword [esp + 0x4c]
push edx
call fcn.1002b322
add esp, 4
cmp dword [esp + 0xb4], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x10012cf8
mov eax, dword [esp + 0xa0]
push eax
call fcn.1002b322
add esp, 4
cmp dword [esp + 0xd0], edi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
jb 0x100126cb
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.1002b322
add esp, 4
xor al, al
jmp 0x10012e01
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x218]
push edx
push eax
call fcn.100304b0
add esp, 0xc
cmp dword [esp + 0x98], edi
jb 0x10012d60
mov ecx, dword [esp + 0x84]
push ecx
call fcn.1002b322
add esp, 4
cmp dword [esp + 0x7c], edi
mov esi, 0xf
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
jb 0x10012d8d
mov edx, dword [esp + 0x68]
push edx
call fcn.1002b322
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
jb 0x10012dac
mov eax, dword [esp + 0x4c]
push eax
call fcn.1002b322
add esp, 4
cmp dword [esp + 0xb4], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x10012dd1
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.1002b322
add esp, 4
cmp dword [esp + 0xd0], edi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
jb 0x10012dff
mov edx, dword [esp + 0xbc]
push edx
call fcn.1002b322
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x620]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x608]
xor ecx, esp
call fcn.1002b6af
mov esp, ebp
pop ebp
ret 0xc