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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
push esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x30]
mov ebp, dword [edx]
push edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x14], ecx
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], ebp
call fcn.10031220
mov eax, dword [ebp + 4]
cmp eax, 0xffffffff
jae 0x10031c2e
inc eax
mov dword [ebp + 4], eax
lea ecx, [esp + 0x3c]
call fcn.10038a58
lea eax, [esp + 0x44]
push eax
call fcn.10031450
add esp, 4
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], eax
call fcn.10031220
mov eax, dword [ebp + 4]
test eax, eax
je 0x10031c63
cmp eax, 0xffffffff
jae 0x10031c63
dec eax
mov dword [ebp + 4], eax
mov eax, dword [ebp + 4]
neg eax
sbb eax, eax
not eax
and eax, ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], eax
call fcn.10038a58
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10031c8b
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ebp, dword [esp + 0x44]
mov edx, dword [ebp]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x6c]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
movzx eax, ax
lea ecx, [edi + 8]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x38], eax
push 1
lea eax, [esp + 0x2c]
xor ebp, ebp
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebp
mov byte [esp + 0x64], 0
mov byte [esp + 0x34], 0x30
mov dword [esp + 0x40], ebp
mov dword [esp + 0x38], ebp
call fcn.10031220
mov al, byte [esi]
add esp, 0x14
cmp al, 0x2b
je 0x10031cfa
mov dword [esp + 0x24], ebp
cmp al, 0x2d
jne 0x10031d02
mov dword [esp + 0x24], 1
call dword [sym.imp.MSVCR100.dll_localeconv]
mov edx, dword [eax]
mov al, byte [edx]
mov ebp, dword [sym.imp.MSVCR100.dll_memchr]
push ebx
push 0x65
push esi
mov byte [esp + 0x28], al
mov word [esp + 0x29], 0x65
call ebp
movsx ecx, byte [esp + 0x28]
push ebx
push ecx
push esi
mov dword [esp + 0x28], eax
call ebp
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x10031d3e
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x6c]
mov ecx, eax
cmp edx, 0x10
jae 0x10031d54
lea ecx, [esp + 0x6c]
cmp byte [ecx], 0x7f
je 0x10031e8f
cmp edx, 0x10
jae 0x10031d66
lea eax, [esp + 0x6c]
cmp byte [eax], 0
jle 0x10031e8f
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.10030190
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x10031d94
mov edx, dword [esp + 0x14]
push 0x30
push edx
lea ecx, [esp + 0x58]
call fcn.10030430
jmp 0x10031dbf
test ebp, ebp
jne 0x10031dac
mov eax, dword [esp + 0x18]
push 0x30
push eax
lea ecx, [esp + 0x58]
call fcn.10030430
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x14]
push 0x30
push ecx
sub ebx, esi
push ebx
lea ecx, [esp + 0x5c]
call fcn.100309c0
push 0x30
test ebp, ebp
jne 0x10031dd5
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x58]
call fcn.10030430
jmp 0x10031e04
mov eax, dword [esp + 0x3c]
mov ebx, ebp
sub ebx, esi
push eax
lea ecx, [ebx + 1]
push ecx
lea ecx, [esp + 0x5c]
call fcn.100309c0
mov edx, dword [esp + 0x18]
push 0x30
push edx
push ebx
lea ecx, [esp + 0x5c]
call fcn.100309c0
mov dword [esp + 0x38], 0
mov ebx, dword [esp + 0x6c]
mov ebp, 0x10
mov dword [esp + 0x18], 0
cmp dword [esp + 0x80], ebp
jae 0x10031e22
lea ebx, [esp + 0x6c]
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], ebp
jae 0x10031e30
lea eax, [esp + 0x50]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_strcspn]
mov esi, eax
mov al, byte [ebx]
add esp, 8
cmp al, 0x7f
je 0x10031e75
test al, al
jle 0x10031e75
mov edx, esi
sub edx, dword [esp + 0x24]
movsx eax, al
cmp eax, edx
jae 0x10031e75
push 0
sub esi, eax
push 1
push esi
lea ecx, [esp + 0x5c]
call fcn.100309c0
cmp byte [ebx + 1], 0
jle 0x10031e6f
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x10031e47
mov esi, dword [esp + 0x50]
cmp dword [esp + 0x64], ebp
jae 0x10031e83
lea esi, [esp + 0x50]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
mov ecx, dword [ebp + 0x20]
add eax, ebx
add eax, dword [esp + 0x38]
add eax, dword [esp + 0x18]
cmp dword [ebp + 0x24], 0
jl 0x10031ebc
jg 0x10031eb0
test ecx, ecx
je 0x10031ebc
cmp ecx, eax
jbe 0x10031ebc
sub ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x10031ec4
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x10031f9c
cmp eax, 0x100
je 0x10031f19
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x9c]
push edx
push eax
push ecx
lea edx, [esp + 0x34]
push edx
push edi
call fcn.1002f400
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xb4], edx
jmp 0x10031f91
cmp dword [esp + 0x24], 0
jbe 0x10031f56
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
push 1
push esi
push eax
push ecx
lea edx, [esp + 0x34]
push edx
push edi
call fcn.1002f470
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
add esp, 0x18
inc esi
mov dword [esp + 0x9c], edx
dec ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0x9c]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
call fcn.1002f400
mov edx, dword [eax]
mov dword [esp + 0xb0], edx
mov eax, dword [eax + 4]
mov dword [esp + 0xb4], eax
mov dword [esp + 0x28], 0
add esp, 0x18
movsx ecx, byte [esp + 0x1c]
push ebx
push ecx
push esi
call dword [sym.imp.MSVCR100.dll_memchr]
add esp, 0xc
test eax, eax
je 0x1003209d
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x9c]
sub eax, esi
push edx
mov edx, dword [esp + 0x9c]
lea ebp, [eax + 1]
lea eax, [ebp - 1]
push eax
push esi
push ecx
push edx
lea eax, [esp + 0x38]
push eax
push edi
call fcn.10031220
mov ecx, dword [eax]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x50]
push eax
push edi
call fcn.1002f400
mov ecx, dword [eax]
mov dword [esp + 0xcc], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0xd0], edx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
add esp, 0x34
call edx
mov ecx, dword [esp + 0x98]
movzx eax, ax
push 1
push eax
mov eax, dword [esp + 0xa4]
push eax
push ecx
lea edx, [esp + 0x54]
push edx
push edi
call fcn.1002f400
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x50]
push ecx
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0x48]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x64]
push eax
push edi
call fcn.1002f400
mov ecx, dword [eax]
mov dword [esp + 0xc8], ecx
mov edx, dword [eax + 4]
add esi, ebp
add esp, 0x30
sub ebx, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x9c], edx
push ebx
push 0x65
push esi
call dword [sym.imp.MSVCR100.dll_memchr]
add esp, 0xc
test eax, eax
je 0x10032170
mov edx, dword [esp + 0x9c]
sub eax, esi
lea ebp, [eax + 1]
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x9c]
lea ecx, [ebp - 1]
push ecx
push esi
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
push edi
call fcn.10031220
mov edx, dword [eax]
mov dword [esp + 0xb4], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x68]
push ecx
push edi
call fcn.1002f400
mov edx, dword [eax]
mov dword [esp + 0xcc], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x68]
add esp, 0x34
test byte [edx + 0x14], 4
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x14], 0
mov ecx, 0x10045cb0
jne 0x1003213d
mov ecx, 0x10045cac
mov edx, dword [eax]
push 1
push ecx
mov ecx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.1002f470
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
add esi, ebp
add esp, 0x18
sub ebx, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x9c], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
push eax
push ebx
push esi
push ecx
push edx
lea eax, [esp + 0x50]
push eax
push edi
call fcn.10031220
mov ecx, dword [eax]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x68]
push eax
push edi
call fcn.1002f400
mov ecx, dword [eax]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0xdc]
push edx
mov dword [esp + 0xd4], ecx
mov eax, dword [eax + 4]
push eax
push ecx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xe8], eax
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
call fcn.1002f400
mov edi, 0x10
add esp, 0x4c
cmp dword [esp + 0x64], edi
jb 0x10032214
mov eax, dword [esp + 0x50]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x80], edi
jb 0x1003223a
mov ecx, dword [esp + 0x6c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x88]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003779c
add esp, 0x7c
ret