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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
push ebx
mov dword [esp + 0x4c], eax
xor edx, edx
mov dword [esp + 0x50], ecx
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov byte [esp + 0x150], dl
mov ecx, 0x3f
lea edi, [esp + 0x151]
rep stosd dword es:[edi], eax
mov cx, word [esi + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ax, word [esi + 0x3a]
mov edi, dword [esi]
mov word [esp + 0x68], ax
mov word [esp + 0x50], cx
lea eax, [esp + 0x18]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x1c]
cmp eax, edx
mov dword [esp + 0x20], ecx
mov cl, byte [esi + 0x18]
mov dword [esp + 0x10], edx
mov byte [esp + 0xe], dl
mov dword [esp + 0x18], 0x1007c5a4
mov byte [esp + 0x24], cl
mov dword [esp + 0x28], edx
je 0x1002eff1
push eax
call fcn.100616c0
add esp, 4
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x20]
mov bl, byte [esi + 0x18]
mov cx, word [esi + 0x30]
mov dword [esp + 0x5c], eax
xor eax, eax
cmp edi, eax
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x24]
mov byte [esp + 0xd], bl
mov word [esp + 0x60], cx
mov dword [esp + 0x6c], eax
je 0x1002f030
mov eax, edi
lea ecx, [eax + 1]
mov dword [esp + 0x64], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002f025
sub eax, dword [esp + 0x64]
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], ecx
xor ecx, ecx
mov dword [esp + 0x30], eax
cmp dword [esi + 0x40], ecx
mov dword [esp + 0x38], 0x1007c5a4
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edx
mov byte [esp + 0x44], bl
jne 0x1002f06f
mov dword [esp + 0x4c], ecx
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x58]
push 0x100
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
call fcn.1003e0c0
mov bl, al
add esp, 0x18
test bl, bl
je 0x1002f0f4
cmp bl, 2
je 0x1002f0ed
mov esi, dword [ebp + 0x10]
push 0x10086a48
push esi
call fcn.10037ed0
mov al, byte [esp + 0x158]
add esp, 8
test al, al
jne 0x1002f0dc
movzx ecx, bl
push ecx
push 0x100
lea edx, [esp + 0x158]
push edx
push 0x251c
call fcn.1005d7e0
add esp, 0x10
lea eax, [esp + 0x150]
push eax
push esi
call fcn.10038260
add esp, 8
xor edi, edi
jmp 0x1002f667
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1002f10a
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.1003ddb0
add esp, 8
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.1003bda0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je case.0x1002f362.3
xor eax, eax
mov ecx, 0x1a
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
setne cl
mov word [esp + 0x70], 0x6a
mov byte [esp + 0x73], 0
mov edx, dword [ebx + 0x4c]
shl ecx, 1
xor ecx, edx
and ecx, 2
xor edx, ecx
test eax, eax
mov dword [ebx + 0x4c], edx
je 0x1002f178
mov edx, eax
push str.local
push edx
call fcn.10068d1f
add esp, 8
test eax, eax
jne 0x1002f182
mov eax, dword [ebp + 8]
add eax, 0x4d
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0x1f
push ecx
lea edx, [esp + 0xa4]
push edx
call fcn.10068b10
mov eax, dword [esi + 0x3c]
add esp, 0xc
test eax, eax
je 0x1002f1c2
push str.local
push eax
call fcn.10068d1f
add esp, 8
test eax, eax
je 0x1002f1c2
mov eax, dword [esi + 0x3c]
push 0x1f
push eax
lea ecx, [esp + 0xc3]
push ecx
jmp 0x1002f1d3
mov edx, dword [ebp + 8]
push 0x1f
add edx, 0x2e
push edx
lea eax, [esp + 0xc3]
push eax
call fcn.10068b10
add esp, 0xc
lea ecx, [esp + 0x9c]
push str.unspecified
push ecx
mov byte [esp + 0x17], 0
call fcn.1006fd66
add esp, 8
test eax, eax
jne 0x1002f1fe
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x58]
cmp eax, 1
je 0x1002f232
jle 0x1002f217
cmp eax, 4
jg 0x1002f217
mov word [esp + 0x74], 0
jmp 0x1002f239
lea ecx, [esp + 0x2c]
call fcn.1002eed0
lea ecx, [esp + 0x18]
call fcn.1002ee60
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov word [esp + 0x74], 2
mov eax, 8
mov byte [esp + 0x76], al
mov word [esp + 0x84], ax
mov eax, dword [esp + 0x50]
test ax, ax
mov byte [esp + 0x77], 0
mov byte [esp + 0x92], 3
mov word [esp + 0x90], 0x138a
mov byte [esp + 0x72], 2
jle 0x1002f27a
cmp ax, 0x1e
jge 0x1002f27a
mov eax, 0x1e
movzx dx, byte [esp + 0xd]
mov word [esp + 0x78], ax
mov eax, dword [esp + 0x60]
test ax, ax
mov word [esp + 0x7a], dx
mov word [esp + 0x86], ax
jne 0x1002f2ac
mov word [esp + 0x86], 0x5b4
mov ecx, 1
jmp 0x1002f2b0
mov ecx, dword [esp + 0x6c]
mov eax, dword [esi + 0x34]
cmp eax, 2
je 0x1002f2bb
or ecx, 2
test eax, eax
jne 0x1002f2c2
or ecx, 4
mov ax, word [esi + 0x38]
mov dword [esp + 0x88], ecx
mov cx, word [esp + 0x68]
lea edx, [esp + 0xe0]
mov word [esp + 0x8c], ax
push edx
lea eax, [esp + 0x74]
mov word [esp + 0x92], cx
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.1003e320
add esp, 0xc
test al, al
je 0x1002f32d
cmp al, 6
jne case.0x1002f362.3
mov esi, dword [ebp + 0x10]
push 0x10086a48
push esi
call fcn.10037ed0
push 0x100
lea edx, [esp + 0x15c]
push edx
push 0x25ef
jmp 0x1002f5bc
mov esi, dword [ebp + 8]
lea ecx, [esp + 0xbb]
push ecx
lea eax, [esp + 0x12f]
call fcn.1002ee00
add esp, 4
test al, al
jne 0x1002f350
mov byte [esp + 0xe], 1
movzx eax, byte [esp + 0xe3]
dec eax
cmp eax, 4
ja case.0x1002f362.4
jmp dword [eax*4 + 0x1002f75c]
push 0x100896cc
jmp 0x1002f64b
cmp word [esp + 0xf4], 2
jae 0x1002f3b9
mov al, byte [esp + 0xf]
test al, al
jne case.0x1002f362.4
mov esi, dword [ebp + 0x10]
push 0x10089a14
push esi
call fcn.10037ed0
lea edx, [esp + 0xa4]
push edx
push esi
call fcn.10038260
push str.database_character_set
push esi
call fcn.10038260
add esp, 0x18
jmp 0x1002f455
test byte [ebx + 0x4c], 2
mov esi, dword [ebp + 0x10]
je 0x1002f3e3
push 0x10086658
push esi
call fcn.10037ed0
lea eax, [esp + 0xa4]
push eax
push esi
call fcn.10038260
add esp, 0x10
jmp 0x1002f657
mov al, byte [esp + 0xe]
test al, al
je 0x1002f425
push 0x10089a68
push esi
call fcn.10037ed0
lea ecx, [esp + 0xa4]
push ecx
push esi
call fcn.10038260
lea edx, [esp + 0xcb]
push edx
push esi
call fcn.10038260
lea eax, [esp + 0x143]
push eax
push esi
call fcn.10038260
add esp, 0x20
jmp 0x1002f455
push 0x10089a30
push esi
call fcn.10037ed0
lea ecx, [esp + 0xa4]
push ecx
push esi
call fcn.10038260
lea edx, [esp + 0x11c]
push edx
jmp 0x1002f47e
push 0x100869a0
jmp 0x1002f64b
mov esi, dword [ebp + 0x10]
mov al, byte [esp + 0xe]
test al, al
je 0x1002f487
push 0x10089a4c
push esi
call fcn.10037ed0
lea eax, [esp + 0xc3]
push eax
push esi
call fcn.10038260
lea ecx, [esp + 0x13b]
push ecx
push esi
call fcn.10038260
add esp, 0x18
mov dl, byte [esp + 0xe2]
mov esi, dword [ebp + 0x14]
mov byte [ebx + 0x28], dl
mov ax, word [esp + 0xf4]
mov word [ebx + 0x2a], ax
mov cl, byte [esp + 0xe6]
mov byte [ebx + 0x2c], cl
mov dl, byte [esp + 0xe7]
mov byte [ebx + 0x2d], dl
mov al, byte [esp + 0x102]
mov byte [ebx + 0x2e], al
mov cx, word [esp + 0x100]
push esi
mov word [ebx + 0x30], cx
call fcn.1002cd20
add esp, 4
test eax, eax
mov edi, 6
je 0x1002f528
cmp byte [ebx + 0x28], 2
ja 0x1002f4e8
cmp word [ebx + 0x2a], di
jb 0x1002f528
movzx edx, word [esp + 0x100]
movzx eax, byte [ebx + 0x2e]
movzx ecx, byte [ebx + 0x2d]
push edx
movzx edx, byte [ebx + 0x2c]
push eax
push ecx
push edx
push 0x100
lea eax, [esp + 0x164]
push eax
push 0x271f
call fcn.1005d7e0
lea ecx, [esp + 0x16c]
push ecx
push esi
call fcn.10037350
add esp, 0x24
mov ecx, dword [ebp + 8]
push 0
lea edx, [esp + 0x12f]
push edx
mov edx, dword [ecx + 0x70]
lea eax, [esp + 0x114]
push eax
push edx
call fcn.100628c0
add esp, 0x10
test eax, eax
mov dword [ebx + 0x34], eax
jne 0x1002f58b
mov esi, dword [ebp + 0x10]
push 0x10086a48
push esi
call fcn.10037ed0
push 0x100
lea eax, [esp + 0x15c]
push eax
push 0x251b
call fcn.1005d7e0
lea ecx, [esp + 0x164]
push ecx
push esi
call fcn.10038260
add esp, 0x1c
jmp 0x1002f657
cmp word [esp + 0xf4], di
jae 0x1002f5e4
cmp byte [esp + 0xd], 1
jbe 0x1002f5d7
mov esi, dword [ebp + 0x10]
push 0x10086a48
push esi
call fcn.10037ed0
push 0x100
lea edx, [esp + 0x15c]
push edx
push 0x255e
call fcn.1005d7e0
lea eax, [esp + 0x164]
push eax
push esi
call fcn.10038260
add esp, 0x1c
jmp 0x1002f657
mov cl, byte [esp + 0xea]
mov byte [esp + 0x24], cl
jmp 0x1002f5ff
mov al, byte [esp + 0xea]
mov cl, byte [esp + 0xd]
cmp al, cl
je 0x1002f5ff
test cl, cl
jne 0x1002f59c
cmp al, 1
jne 0x1002f59c
mov byte [esp + 0x24], al
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.1003dd60
add esp, 8
test eax, eax
je 0x1002f646
mov eax, dword [esp + 0xe8]
test ax, ax
je 0x1002f635
cmp ax, 0xffff
je 0x1002f635
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.1003dd40
add esp, 8
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1003dd70
add esp, 4
test eax, eax
jne 0x1002f6b9
push 0x10086a9c
mov esi, dword [ebp + 0x10]
push esi
call fcn.10037ed0
add esp, 8
xor edi, edi
cmp ebx, edi
je 0x1002f667
push esi
push ebx
call fcn.1002ea40
add esp, 8
mov eax, dword [esp + 0x48]
cmp eax, edi
mov esi, 0x1007c5a4
mov dword [esp + 0x38], esi
je 0x1002f685
push eax
call fcn.1005e0e0
mov dword [esp + 0x4c], edi
add esp, 4
lea ecx, [esp + 0x38]
call fcn.10060ec0
mov eax, dword [esp + 0x28]
cmp eax, edi
mov dword [esp + 0x18], esi
je 0x1002f6a7
push eax
call fcn.1005e0e0
add esp, 4
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x18]
call fcn.10060ec0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xe8]
test ax, ax
je 0x1002f6d8
cmp ax, 0xffff
je 0x1002f6d8
mov edx, dword [esp + 0x10]
push edx
call fcn.1003dbf0
add esp, 4
test byte [esp + 0xf8], 4
mov esi, dword [ebp + 0x14]
je 0x1002f71a
push esi
call fcn.1002cd20
add esp, 4
test eax, eax
je 0x1002f71a
push 0x100
lea eax, [esp + 0x254]
push eax
push 0x25fc
call fcn.1005d7e0
lea ecx, [esp + 0x25c]
push ecx
push esi
call fcn.10037350
add esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jle 0x1002f734
mov edx, dword [ebx + 0x34]
push eax
push esi
mov dword [eax + 8], edx
call fcn.1002ebb0
add esp, 8
mov ecx, esi
call fcn.1002ead0
lea ecx, [esp + 0x2c]
mov dword [ebx + 0x3c], esi
call fcn.1002eed0
lea ecx, [esp + 0x18]
call fcn.1002ee60
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret