Function at 0x1004b490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x120
mov esi, esp
mov dword [esi + 0x108], ebp
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x110]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x10055a70
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea ecx, [esi + 0xa0]
mov dword [ecx + 0x60], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx + 0x50], xmm0
movdqa xmmword [ecx + 0x40], xmm0
movdqa xmmword [ecx + 0x30], xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x18], fcn.10012050
mov dword [esi + 0x10], edx
mov edx, dword [ecx + 0x1c]
lea ecx, [esi + 0xc]
mov dword [ecx], edx
lock inc dword [edx + 4]
mov dword [eax + 8], 1
push 0x101be748
call fcn.100513c8
mov dword [esi + 8], eax
mov cl, byte [ebp + 0x14]
lea eax, [esi + 7]
mov byte [eax], 0
movzx edi, cl
lea ecx, [ebp + 0xc]
mov edx, dword [esi + 0x2c]
lea ebx, [esi + 0x104]
push ebx
lea ebx, [esi + 0x10]
push ebx
lea ebx, [esi + 0x14]
push ebx
push dword [esi + 8]
push eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [eax + 4]
lea eax, [esi + 0xc]
push eax
push edi
call fcn.1004b7e0
add esp, 0x24
mov ebx, dword [esi + 8]
test al, al
je 0x1004b6a0
lea edx, [esi + 0x20]
xor ecx, ecx
dec ecx
mov dword [edx + 4], ecx
mov dword [edx], ecx
mov word [edx + 8], 0xffff
mov eax, dword [ebx]
mov edi, dword [eax + 0x18]
mov dword [esi + 0x118], ecx
mov ecx, edi
call dword [section..00cfg]
mov dword [esi + 0x118], 1
mov ecx, ebx
lea eax, [esi + 0x20]
push eax
push 0x1019e9fc
push 0x1019e9f2
call edi
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x80], xmm0
movdqa xmmword [esi + 0x70], xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
movdqa xmmword [esi + 0x40], xmm0
movdqa xmmword [esi + 0x30], xmm0
mov dword [esi + 0x90], 0xffffffff
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov eax, edi
sub eax, ebx
cmp eax, 0x63
jl 0x1004b618
add eax, 2
push eax
call fcn.10085990
add esp, 4
mov edx, eax
test eax, eax
jne 0x1004b61d
mov dword [esi + 0x1c], 0
mov dword [esi + 0x118], 2
call fcn.10055c2c
lea edx, [esi + 0x30]
xor eax, eax
cmp byte [esi + 7], 0
je 0x1004b627
mov byte [edx], 0x2d
inc edx
cmp ebx, edi
mov dword [esi + 8], eax
jae 0x1004b65f
lea eax, [esi + 0x2a]
mov cl, byte [ebx]
xor edi, edi
cmp byte [esi + edi + 0x20], cl
je 0x1004b645
inc edi
cmp edi, 0xa
jne 0x1004b635
mov ecx, eax
jmp 0x1004b64b
lea ecx, [esi + edi]
add ecx, 0x20
lea edi, [esi + 0x20]
sub ecx, edi
mov cl, byte [ecx + 0x1019e9f2]
mov byte [edx], cl
inc ebx
inc edx
cmp ebx, dword [esi + 0x10]
jb 0x1004b631
mov byte [edx], 0
lea eax, [esi + 0x30]
push dword [ebp + 0x20]
push 0x1019e9fd
push eax
call fcn.1004c7c7
add esp, 0xc
cmp eax, 1
jne 0x1004b72b
mov eax, dword [esi + 8]
test eax, eax
je 0x1004b696
push 0
push eax
push 0x101a6dd4
call fcn.100a9690
add esp, 0xc
mov dword [esi + 0x118], 1
lea eax, [ebp + 0x10]
lea ecx, [ebp + 0xc]
push eax
call fcn.10036820
mov ecx, dword [ebp + 8]
test al, al
je 0x1004b6b9
mov eax, dword [ebp + 0x1c]
or byte [eax], 2
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov edi, dword [esi + 0xc]
xor eax, eax
dec eax
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x1004b6e8
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov dword [esi + 0x118], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
mov edi, dword [esi + 0x14]
test edi, edi
je 0x1004b712
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x118], 0xffffffff
call dword [section..00cfg]
mov dword [esi + 0x118], 0
push edi
call ecx
add esp, 4
mov eax, dword [esi + 0x110]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x118], 2
push str.money_get_error
call fcn.1004c815
add esp, 4
push ebp
sub esp, 0x24
lea esi, [ebp - 0x11c]
mov ebp, dword [esi + 0x108]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1004b76f
push 0
push eax
push 0x101a6dd4
call fcn.100a9690
add esp, 0xc
add esp, 0x24
pop ebp
ret