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

Disassembly:
sub esp, 0x58
push ebp
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp]
push esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
xor eax, eax
push edi
xor edi, edi
cmp dword [esp + 0x74], edi
setne al
movzx ecx, byte [eax + esi + 0x19]
mov dword [esp + 0x40], eax
mov eax, dword [esi + eax*4 + 0x1c]
mov dword [esp + 0x28], ecx
cmp ecx, edi
je 0x1005345d
cmp eax, edi
jne 0x1005345d
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
push ebp
lea eax, [esp + 0x28]
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], edi
call fcn.1004c5d0
add esp, 0x10
test eax, eax
jne 0x100533fd
cmp dword [esi + 0x14], edi
push ebx
mov dword [esp + 0x6c], edi
jle 0x10053141
mov eax, 3
mov dword [esp + 0x58], 0x100f72e4
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x100f72e0
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10052cb9
mov ecx, dword [esp + 0x6c]
mov edx, dword [eax + ecx*4]
jmp 0x10052cc0
mov edx, dword [esp + 0x74]
mov edx, dword [edx + 0x24]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10052ce1
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x6c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + eax*8]
jmp 0x10052ce6
mov ecx, 0x100f72dc
lea eax, [edx + edx*2]
mov edx, dword [esp + 0x74]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [eax + edx]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], edx
mov eax, ecx
test ecx, ecx
je 0x10052d1f
cmp byte [ecx], 0
je 0x10052d18
inc eax
cmp byte [eax], 0
jne 0x10052d12
sub eax, ecx
and eax, 0x3fffffff
mov dword [esp + 0x4c], eax
mov eax, edx
test edx, edx
je 0x10052d3d
cmp byte [edx], 0
je 0x10052d36
mov edi, edi
inc eax
cmp byte [eax], 0
jne 0x10052d30
sub eax, edx
and eax, 0x3fffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebp]
push 1
push 0x1a
push eax
lea eax, [esp + 0x5c]
call fcn.10049d10
add esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
je 0x10052d68
mov esi, eax
call fcn.1003c6f0
mov ecx, dword [ebp]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x54]
call fcn.10049d10
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10052d89
mov esi, edi
call fcn.1003c6f0
mov edx, dword [ebp]
push 1
push 0x1a
push edx
lea eax, [esp + 0x64]
call fcn.10049d10
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10052daa
mov esi, ebx
call fcn.1003c6f0
mov esi, dword [ebp]
mov ecx, 0x40
call fcn.100414d0
mov esi, eax
mov dword [esp + 0x30], esi
test esi, esi
je 0x10052ddf
push 0x40
push 0
push esi
call fcn.100ae530
add esp, 0xc
or eax, 0xffffffff
mov byte [esi], 0x75
mov word [esi + 0x28], ax
mov dword [esi + 0x38], 1
mov ecx, dword [ebp]
mov eax, dword [esp + 0x30]
push ecx
call fcn.10049e50
mov esi, dword [ebp]
add esp, 4
mov ecx, 0x40
call fcn.100414d0
mov esi, eax
test esi, esi
je 0x10052e20
push 0x40
push 0
push esi
call fcn.100ae530
add esp, 0xc
or edx, 0xffffffff
mov byte [esi], 0x4c
mov word [esi + 0x28], dx
mov dword [esi + 0x38], 1
mov eax, dword [ebp]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
push eax
mov eax, esi
call fcn.10049e50
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 4
mov eax, esi
call fcn.10049f30
cmp dword [esp + 0x78], 0
mov dword [esp + 0x14], eax
je 0x10052fb9
mov ecx, dword [ebp]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x54]
call fcn.10049d10
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10052e75
mov esi, edi
call fcn.1003c6f0
mov edx, dword [ebp]
push 1
push 0x1a
push edx
lea eax, [esp + 0x6c]
call fcn.10049d10
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10052e96
mov esi, ebx
call fcn.1003c6f0
mov esi, dword [ebp]
mov ecx, 0x40
call fcn.100414d0
mov esi, eax
mov dword [esp + 0x30], esi
test esi, esi
je 0x10052ecb
push 0x40
push 0
push esi
call fcn.100ae530
add esp, 0xc
or eax, 0xffffffff
mov byte [esi], 0x75
mov word [esi + 0x28], ax
mov dword [esi + 0x38], 1
mov ecx, dword [ebp]
mov eax, dword [esp + 0x30]
push ecx
call fcn.10049e50
mov edx, dword [ebp]
push 1
push 0x1a
push edx
lea eax, [esp + 0x58]
call fcn.10049d10
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10052ef9
mov esi, edi
call fcn.1003c6f0
mov eax, dword [ebp]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.10049d10
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10052f1a
mov esi, ebx
call fcn.1003c6f0
mov esi, dword [ebp]
mov ecx, 0x40
call fcn.100414d0
mov esi, eax
mov dword [esp + 0x34], esi
test esi, esi
je 0x10052f4f
push 0x40
push 0
push esi
call fcn.100ae530
add esp, 0xc
or ecx, 0xffffffff
mov byte [esi], 0x75
mov word [esi + 0x28], cx
mov dword [esi + 0x38], 1
mov edx, dword [ebp]
mov eax, dword [esp + 0x34]
push edx
call fcn.10049e50
mov esi, dword [ebp]
add esp, 4
mov ecx, 0x40
call fcn.100414d0
mov esi, eax
test esi, esi
je 0x10052f90
push 0x40
push 0
push esi
call fcn.100ae530
add esp, 0xc
or eax, 0xffffffff
mov byte [esi], 0x46
mov word [esi + 0x28], ax
mov dword [esi + 0x38], 1
mov ecx, dword [ebp]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
push ecx
mov eax, esi
call fcn.10049e50
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add esp, 4
mov eax, esi
call fcn.10049f30
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
cmp eax, 6
je 0x1005312b
cmp eax, 9
jne 0x1005305d
cmp dword [esp + 0x78], 0
je 0x1005312b
mov edx, dword [ebp]
push 1
push 0x1a
push edx
lea eax, [esp + 0x54]
call fcn.10049d10
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10052ffb
mov esi, edi
call fcn.1003c6f0
mov eax, dword [ebp]
push 1
push 0x1a
push eax
lea eax, [esp + 0x6c]
call fcn.10049d10
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1005301c
mov esi, ebx
call fcn.1003c6f0
mov esi, dword [ebp]
mov ecx, 0x40
call fcn.100414d0
mov esi, eax
test esi, esi
je 0x1005304d
push 0x40
push 0
push esi
call fcn.100ae530
add esp, 0xc
or ecx, 0xffffffff
mov byte [esi], 0x75
mov word [esi + 0x28], cx
mov dword [esi + 0x38], 1
mov edx, dword [ebp]
push edx
mov eax, esi
call fcn.10049e50
add esp, 4
jmp 0x100530d2
cmp eax, 8
jne 0x1005309c
mov eax, dword [esp + 0x74]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x3c]
mov eax, dword [edx + eax + 4]
push 0
push 0
test eax, eax
je 0x1005308b
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.10050fd0
add esp, 0x10
jmp 0x100530d4
xor ebx, ebx
lea eax, [ebx + 0x62]
mov ecx, ebp
call fcn.10049f00
add esp, 8
jmp 0x100530d4
mov esi, dword [ebp]
mov ecx, 0x40
call fcn.100414d0
mov esi, eax
test esi, esi
je 0x100530d2
push 0x40
push 0
push esi
call fcn.100ae530
or edx, 0xffffffff
add esp, 0xc
mov byte [esi], 0x62
mov word [esi + 0x28], dx
mov dword [esi + 0x38], 1
call fcn.1003c6f0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov edi, eax
mov eax, ebp
call fcn.1004a550
mov dword [esp + 0x20], eax
test eax, eax
je 0x1005312b
cmp dword [esp + 0x50], 0
mov ecx, dword [eax]
mov edx, dword [eax + 0xc]
mov esi, dword [ebp]
lea ecx, [ecx + ecx*4]
lea ebx, [edx + ecx*4 - 0x14]
jne 0x10053103
xor esi, esi
jmp 0x10053128
mov edi, dword [esp + 0x38]
lea ecx, [edi + 1]
call fcn.100414d0
mov esi, eax
test esi, esi
je 0x10053128
mov eax, dword [esp + 0x50]
push edi
push eax
push esi
call fcn.100ae5b0
add esp, 0xc
mov byte [esi + edi], 0
mov dword [ebx + 4], esi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
inc eax
cmp eax, dword [ecx + 0x14]
mov dword [esp + 0x6c], eax
jl 0x10052ca8
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test esi, esi
je 0x10053177
test eax, eax
je 0x10053177
cmp eax, dword [esi + 0xf0]
jb 0x10053177
cmp eax, dword [esi + 0xf4]
jae 0x10053177
mov edx, dword [esi + 0xec]
mov dword [eax], edx
dec dword [esi + 0xe4]
mov dword [esi + 0xec], eax
jmp 0x10053180
push eax
call fcn.10036090
add esp, 4
mov eax, dword [esp + 0x74]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x3c], ecx
mov eax, ecx
test ecx, ecx
je 0x100531a5
cmp byte [ecx], 0
je 0x1005319e
inc eax
cmp byte [eax], 0
jne 0x10053198
sub eax, ecx
and eax, 0x3fffffff
cmp dword [esp + 0x2c], 6
mov dword [esp + 0x24], eax
jne 0x10053215
mov dword [esp + 0x60], ecx
push 0x38
push esi
mov ecx, str.foreign_key_constraint_failed
mov dword [esp + 0x6c], eax
call fcn.10049e10
mov edi, eax
add esp, 8
test edi, edi
je 0x100531d2
mov byte [edi + 1], 2
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push 0
push 0
push edx
lea eax, [esp + 0x7c]
push eax
xor ecx, ecx
xor eax, eax
mov edx, esi
call fcn.1004ba40
add esp, 4
push eax
xor ecx, ecx
mov eax, ebp
call fcn.1004a550
push ebp
call fcn.1004cb50
add esp, 0x24
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x24]
mov ebx, esi
mov cl, byte [ebx + 0xe2]
mov byte [esp + 0x6c], cl
add edi, 0x4d
mov ecx, edi
mov byte [ebx + 0xe2], 0
call fcn.100414d0
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x1005324c
push edi
push 0
push esi
call fcn.100ae530
add esp, 0xc
mov dword [esp + 0x38], esi
test esi, esi
je 0x10053360
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
lea edi, [eax + 0x24]
mov dword [eax + 0x1c], edi
push ecx
lea eax, [edi + 0x28]
push edx
push eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
call fcn.100ae5b0
mov eax, dword [esp + 0x20]
push 0
push 1
push eax
push ebx
call fcn.10050fd0
mov ecx, dword [esp + 0x3c]
push 1
push ecx
push ebx
mov dword [edi + 0x14], eax
call fcn.10044420
mov edx, dword [esp + 0x50]
push 1
push edx
push ebx
mov dword [edi + 0x18], eax
call fcn.1004a460
add esp, 0x34
cmp dword [esp + 0x10], 0
mov dword [edi + 8], eax
je 0x10053364
mov esi, dword [ebp]
mov ecx, 0x40
call fcn.100414d0
mov esi, eax
test esi, esi
je 0x100532ec
push 0x40
push 0
push esi
call fcn.100ae530
add esp, 0xc
or eax, 0xffffffff
mov byte [esi], 0x13
mov word [esi + 0x28], ax
mov dword [esi + 0x38], 1
mov ebp, dword [ebp]
test esi, esi
jne 0x10053322
mov ecx, dword [esp + 0x10]
push ecx
push ebp
call fcn.10044310
mov eax, dword [esp + 0x18]
mov dx, word [eax + 2]
mov ecx, 0x8000
and dx, cx
add esp, 8
cmp dx, cx
je 0x10053345
push eax
push ebp
call fcn.10036110
add esp, 8
jmp 0x10053345
mov eax, dword [esp + 0x10]
mov edx, 0x100
mov dword [esi + 8], eax
test word [eax + 2], dx
je 0x10053340
mov ecx, edx
or word [esi + 2], cx
mov edx, dword [eax + 0x14]
mov dword [esi + 0x14], edx
call fcn.1003c6f0
push 0
push 1
push esi
push ebx
mov dword [esp + 0x20], esi
call fcn.10050fd0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov dword [ecx + 0xc], eax
jmp 0x10053364
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x14]
mov dl, byte [esp + 0x6c]
mov ebp, dword [esp + 0x10]
mov byte [ebx + 0xe2], dl
test esi, esi
je 0x100533a1
push esi
push ebx
call fcn.10044310
mov ax, word [esi + 2]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
add esp, 8
cmp ax, dx
je 0x100533a1
push esi
push ebx
call fcn.10036110
add esp, 8
test ebp, ebp
je 0x100533cc
push ebp
push ebx
call fcn.10044310
mov ax, word [ebp + 2]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
add esp, 8
cmp ax, dx
je 0x100533cc
push ebp
push ebx
call fcn.10036110
add esp, 8
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
call fcn.1003c850
mov eax, dword [esp + 0x28]
push eax
push esi
call fcn.1003e2e0
add esp, 8
cmp byte [esi + 0x1e], 1
pop ebx
jne 0x10053406
mov ecx, dword [esp + 0x18]
push ecx
mov eax, esi
call fcn.100456d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x58
ret
mov eax, dword [esp + 0x28]
cmp eax, 6
je 0x10053425
cmp eax, 9
jne 0x10053420
cmp dword [esp + 0x74], 0
jne 0x10053420
mov byte [edi], 0x69
jmp 0x10053428
mov byte [edi], 0x6a
jmp 0x10053428
mov byte [edi], 0x73
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
cmp dword [esp + 0x74], 0
mov dword [edi + 4], eax
mov edx, dword [ecx + 0x44]
mov dword [eax + 0x14], edx
mov ecx, dword [ecx + 0x44]
mov edx, dword [esp + 0x70]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + ecx*4 + 0x1c], eax
setne dl
add dl, 0x69
mov byte [eax + 8], dl
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
add esp, 0x58
ret