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

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, eax
test esi, esi
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x20], 0
je 0x57d789
push edi
mov eax, ebp
call fcn.005882f0
add esp, 4
test eax, eax
jne 0x57d789
test byte [edi + 0x22], 0x10
jne 0x57d789
cmp ebx, 0x63
jne 0x57d221
mov dword [esp + 0x48], 2
jmp 0x57d22f
cmp ebx, 2
je 0x57d22f
cmp ebx, 1
jne 0x57d789
mov eax, dword [esi + 8]
cmp word [eax], 1
jne 0x57d789
cmp dword [eax + 0x18], 0
jne 0x57d789
cmp dword [esi + 0xc], 0
jne 0x57d789
cmp dword [esi + 0x18], 0
jne 0x57d789
cmp dword [esi + 0x10], 0
jne 0x57d789
cmp dword [esi + 0x28], 0
jne 0x57d789
cmp dword [esi + 0x1c], 0
jne 0x57d789
test byte [esi + 6], 1
jne 0x57d789
mov esi, dword [esi]
cmp dword [esi], 1
jne 0x57d789
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
cmp byte [edx], 0x71
jne 0x57d789
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
push ecx
push edx
push 0
mov eax, ebp
call fcn.00570590
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
je 0x57d789
cmp eax, edi
je 0x57d789
test byte [eax + 0x22], 0x10
jne 0x57d789
cmp dword [eax + 0x1c], 0
jne 0x57d789
mov ebx, dword [edi + 8]
cmp ebx, dword [eax + 8]
jne 0x57d789
mov ecx, dword [edi + 4]
cmp ecx, dword [eax + 4]
jne 0x57d789
xor ebp, ebp
test ebx, ebx
jle 0x57d345
mov edx, edi
mov esi, dword [edx + 0xc]
mov edi, dword [eax + 0xc]
add esi, 0x10
add edi, 0x10
mov cl, byte [esi + 6]
cmp cl, byte [edi + 6]
jne 0x57d789
mov edx, dword [edi]
mov ecx, dword [esi]
call fcn.0057d110
test eax, eax
je 0x57d789
cmp byte [esi + 4], 0
je 0x57d330
cmp byte [edi + 4], 0
je 0x57d789
add ebp, 1
add esi, 0x18
add edi, 0x18
cmp ebp, ebx
jl 0x57d303
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x44]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x57d393
mov ebx, dword [eax + 0x10]
nop
cmp byte [esi + 0x18], 0
je 0x57d35e
mov dword [esp + 0x20], 1
mov edi, ebx
test edi, edi
je 0x57d789
push esi
call fcn.0057d130
add esp, 4
test eax, eax
jne 0x57d384
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x57d368
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
test edi, edi
je 0x57d789
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x57d350
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x57d3b7
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x2c]
push ecx
call fcn.0056cd40
add esp, 8
test eax, eax
jne 0x57d789
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x40]
mov esi, dword [edx + 0x44]
mov ecx, dword [edi]
call fcn.00580c70
mov esi, eax
mov dword [esp + 0x28], esi
call fcn.00583190
mov ebp, eax
push esi
mov eax, edi
call fcn.00574560
mov ebx, dword [edi + 0x44]
mov ecx, dword [esp + 0x50]
mov edx, edi
mov edi, dword [esp + 0x48]
add esp, 4
lea esi, [ebx + 1]
lea eax, [esi + 1]
push edi
push ecx
mov dword [esp + 0x1c], esi
mov dword [edx + 0x44], eax
call fcn.0057a760
mov edx, dword [esp + 0x54]
push 0x27
push edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x50]
push esi
push eax
mov eax, edi
call fcn.0057a470
add esp, 0x18
cmp dword [edi + 4], 0
jge 0x57d42b
mov ecx, edi
cmp dword [ecx + 0x10], 0
jne 0x57d432
cmp dword [esp + 0x20], 0
je 0x57d46d
push 0
push 0
mov edx, esi
push edx
push 0x41
mov eax, ebp
call fcn.0055cbe0
push 0
push 0
mov esi, eax
push 0
push 1
mov eax, ebp
call fcn.0055cbe0
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x1c]
add esp, 0x20
cmp eax, esi
jle 0x57d475
mov edx, dword [ebp + 4]
lea ecx, [esi + esi*4]
mov dword [edx + ecx*4 + 8], eax
jmp 0x57d475
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x40]
push 0x26
push eax
mov eax, dword [esp + 0x20]
push ebx
push edi
call fcn.0057a470
push 0
push 0
push ebx
push 0x41
mov eax, ebp
call fcn.0055cbe0
mov dword [esp + 0x54], eax
add esp, 0x20
mov eax, edi
call fcn.0056d280
mov dword [esp + 0x1c], eax
mov eax, edi
call fcn.0056d280
mov ecx, dword [esp + 0x44]
cmp dword [ecx + 4], 0
mov esi, eax
push 0
mov dword [esp + 0x3c], esi
push esi
jl 0x57d524
push ebx
push 0x3d
mov eax, ebp
call fcn.0055cbe0
mov edx, dword [esp + 0x24]
push esi
push 0
push edx
mov dword [esp + 0x3c], eax
push 0x34
mov eax, ebp
call fcn.0055cbe0
push 0xfffffffffffffffe
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
push str.PRIMARY_KEY_must_be_unique
push eax
call fcn.005746f0
mov eax, dword [ebp + 0x1c]
add esp, 0x2c
cmp eax, dword [esp + 0x24]
jle 0x57d513
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [esp + 0x30]
push edi
mov ecx, esi
call fcn.0057ab90
add esp, 4
jmp 0x57d546
mov eax, ecx
cmp dword [eax + 0x10], 0
mov eax, ebp
jne 0x57d537
mov ecx, dword [esp + 0x1c]
push ecx
push 0x36
jmp 0x57d53a
push ebx
push 0x3d
call fcn.0055cbe0
mov dword [esp + 0x30], eax
add esp, 0x10
mov edi, dword [esp + 0x1c]
push 0
push edi
push ebx
push 0x3c
mov eax, ebp
call fcn.0055cbe0
mov edx, dword [esp + 0x24]
push esi
push edi
push edx
push 0x37
mov eax, ebp
call fcn.0055cbe0
mov eax, dword [ebp + 4]
add esp, 0x20
test eax, eax
je 0x57d57c
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0xb
mov edx, dword [esp + 0x44]
mov esi, dword [ebp + 4]
test esi, esi
mov ecx, dword [edx]
mov edi, dword [ebp]
mov dword [esp + 0x30], ecx
je 0x57d5e0
cmp byte [edi + 0x1e], 0
jne 0x57d5e0
mov eax, dword [ebp + 0x1c]
sub eax, 1
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.0055cf70
mov ecx, dword [esp + 0x30]
xor eax, eax
cmp ecx, eax
mov dword [esi + 0x10], eax
jne 0x57d5c4
mov dword [esi + 0x10], eax
mov byte [esi + 1], al
jmp 0x57d5e7
call fcn.00545410
mov edx, dword [ebp]
push ecx
mov edi, eax
call fcn.005437c0
add esp, 4
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
jmp 0x57d5e7
xor eax, eax
call fcn.0055cf70
mov ecx, dword [esp + 0x20]
push 0
push ecx
push ebx
push 0x43
mov eax, ebp
call fcn.0055cbe0
mov edx, dword [esp + 0x54]
mov esi, dword [edx + 0x10]
add esp, 0x10
test esi, esi
je 0x57d6ff
lea ebx, [ebx]
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x10]
test edi, edi
je 0x57d634
jmp 0x57d620
push esi
call fcn.0057d130
add esp, 4
test eax, eax
jne 0x57d634
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x57d620
push 0
push 0
push ebx
push 0x2b
mov eax, ebp
call fcn.0055cbe0
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
push 0x2b
mov eax, ebp
call fcn.0055cbe0
mov edx, dword [esp + 0x60]
push edi
push edx
call fcn.00574a50
mov ecx, dword [edi + 0x14]
push 0xfffffffffffffff0
push eax
mov eax, dword [esp + 0x58]
push ebx
push 0x26
mov edi, ebp
call fcn.0055ccb0
mov eax, dword [esp + 0x78]
push esi
push eax
call fcn.00574a50
mov ecx, dword [esp + 0x54]
add esp, 0x40
push 0xfffffffffffffff0
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esi + 0x14]
push 0x27
call fcn.0055ccb0
push 0
push 0
push ebx
push 0x41
mov eax, ebp
call fcn.0055cbe0
mov edx, dword [esp + 0x3c]
push 0
push edx
mov edi, eax
push ebx
push 0x3b
mov eax, ebp
call fcn.0055cbe0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
push 1
push eax
push ecx
push 0x46
mov eax, ebp
call fcn.0055cbe0
add esp, 0x40
push 0
lea edx, [edi + 1]
push edx
push ebx
push 0x43
mov eax, ebp
call fcn.0055cbe0
mov eax, dword [ebp + 0x1c]
add esp, 0x10
cmp eax, edi
jle 0x57d6f4
mov edx, dword [ebp + 4]
lea ecx, [edi + edi*4]
mov dword [edx + ecx*4 + 8], eax
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x57d610
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jle 0x57d714
mov edx, dword [ebp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
call fcn.0056d2a0
mov esi, dword [esp + 0x1c]
call fcn.0056d2a0
push 0
push 0
push ebx
push 0x2b
mov eax, ebp
call fcn.0055cbe0
mov edi, dword [esp + 0x24]
push 0
push 0
push edi
push 0x2b
mov eax, ebp
call fcn.0055cbe0
mov esi, dword [esp + 0x4c]
add esp, 0x20
test esi, esi
je 0x57d793
push 0
push 0
push 0
push 6
mov eax, ebp
call fcn.0055cbe0
mov eax, dword [ebp + 0x1c]
add esp, 0x10
cmp eax, esi
jle 0x57d778
mov edx, dword [ebp + 4]
lea ecx, [esi + esi*4]
mov dword [edx + ecx*4 + 8], eax
push 0
push 0
push edi
push 0x2b
mov eax, ebp
call fcn.0055cbe0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret