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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
mov ebx, eax
mov ebp, dword [ebx]
xor eax, eax
push edi
xor edi, edi
cmp esi, edi
mov esi, dword [esp + 0x6c]
setne al
movzx ecx, byte [eax + esi + 0x19]
cmp ecx, edi
mov dword [esp + 0x40], eax
mov eax, dword [esi + eax*4 + 0x1c]
mov dword [esp + 0x30], ecx
je 0x421565
cmp eax, edi
jne 0x421565
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
push edx
push ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], edi
call fcn.0041bb30
add esp, 0x14
test eax, eax
jne 0x4214f6
mov eax, dword [esi + 0x14]
xor edx, edx
cmp eax, edi
mov dword [esp + 0x24], edx
jle 0x42135f
mov eax, 3
mov dword [esp + 0x4c], 0x4b1660
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x4b165c
mov dword [esp + 0x58], eax
jmp 0x421120
mov edx, dword [esp + 0x24]
xor edi, edi
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x42112d
mov eax, dword [eax + edx*4]
jmp 0x421130
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x34]
cmp ecx, edi
je 0x42114d
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + edx*4]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x68]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + edx*8]
jmp 0x421152
mov ecx, 0x4b1658
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
lea eax, [eax + eax*2]
shl eax, 3
mov esi, dword [eax + edx]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x5c], esi
call fcn.00408380
mov ecx, esi
mov dword [esp + 0x48], eax
call fcn.00408380
push edi
mov dword [esp + 0x64], eax
push ebx
lea edx, [esp + 0x64]
xor edi, edi
mov eax, 0x1a
call fcn.0041a0a0
mov esi, eax
push edi
push ebx
lea edx, [esp + 0x54]
mov eax, 0x1a
call fcn.0041a0a0
push edi
mov dword [esp + 0x4c], eax
push ebx
lea edx, [esp + 0x64]
mov eax, 0x1a
call fcn.0041a0a0
push eax
mov eax, dword [esp + 0x54]
mov edi, eax
push ebx
xor edx, edx
mov eax, 0x76
call fcn.0041a0a0
push eax
push ebx
xor edx, edx
mov edi, esi
mov eax, 0x4c
call fcn.0041a0a0
mov ecx, dword [esp + 0x3c]
push ecx
push ebp
call fcn.0041a0d0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa0]
add esp, 0x30
test eax, eax
je 0x421291
push 0
push ebx
lea edx, [esp + 0x4c]
xor edi, edi
mov eax, 0x1a
call fcn.0041a0a0
mov esi, eax
push edi
push ebx
lea edx, [esp + 0x64]
mov eax, 0x1a
call fcn.0041a0a0
push eax
push ebx
xor edx, edx
mov edi, esi
mov eax, 0x76
call fcn.0041a0a0
mov esi, eax
push 0
push ebx
lea edx, [esp + 0x64]
xor edi, edi
mov eax, 0x1a
call fcn.0041a0a0
push edi
mov dword [esp + 0x5c], eax
push ebx
lea edx, [esp + 0x74]
mov eax, 0x1a
call fcn.0041a0a0
push eax
mov eax, dword [esp + 0x64]
mov edi, eax
push ebx
xor edx, edx
mov eax, 0x76
call fcn.0041a0a0
push eax
push ebx
xor edx, edx
mov edi, esi
mov eax, 0x46
call fcn.0041a0a0
mov edx, dword [esp + 0x50]
push edx
push ebp
call fcn.0041a0d0
add esp, 0x40
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
cmp eax, 6
je 0x421345
cmp eax, 9
jne 0x4212e9
mov eax, dword [esp + 0x70]
test eax, eax
je 0x421345
push 0
push ebx
lea edx, [esp + 0x4c]
xor edi, edi
mov eax, 0x1a
call fcn.0041a0a0
mov esi, eax
push edi
push ebx
lea edx, [esp + 0x64]
mov eax, 0x1a
call fcn.0041a0a0
push eax
push ebx
xor edx, edx
mov edi, esi
mov eax, 0x76
call fcn.0041a0a0
add esp, 0x18
jmp 0x421323
cmp eax, 8
push 0
jne 0x421311
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x40]
mov eax, dword [edx + eax + 4]
test eax, eax
je 0x421311
push eax
push ebp
call fcn.00420310
add esp, 0xc
jmp 0x421323
mov eax, 0x62
xor edi, edi
xor edx, edx
push ebx
call fcn.0041a0a0
add esp, 8
mov ecx, dword [esp + 0x20]
mov esi, eax
mov eax, ebx
call fcn.0041a560
push 0
push ebx
lea edx, [esp + 0x64]
mov ecx, eax
mov dword [esp + 0x28], eax
call fcn.00415af0
add esp, 8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 0x14]
inc eax
cmp eax, edx
mov dword [esp + 0x24], eax
mov esi, ecx
jl 0x42111a
mov edx, dword [esp + 0x28]
push edx
push ebp
call fcn.00408130
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x38], ecx
call fcn.00408380
mov edi, eax
cmp dword [esp + 0x30], 6
jne 0x4213ef
mov dword [esp + 0x5c], ecx
push 0x38
push ebp
mov ecx, str.foreign_key_constraint_failed
mov dword [esp + 0x68], edi
call fcn.0041a000
add esp, 8
test eax, eax
mov dword [esp + 0x3c], eax
je 0x4213a8
mov byte [eax + 1], 2
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
lea edx, [esp + 0x78]
push edx
xor ecx, ecx
xor eax, eax
mov esi, ebp
call fcn.0041b4e0
mov esi, dword [esp + 0x5c]
add esp, 4
push eax
xor ecx, ecx
mov eax, ebx
call fcn.0041a560
push ebx
call fcn.0041bff0
add esp, 0x24
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0
mov al, byte [ebp + 0xea]
mov byte [esp + 0x13], al
lea eax, [edi + 0x4d]
mov edx, ebp
mov byte [ebp + 0xea], 0
call fcn.00417b70
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
je 0x4214ab
lea eax, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov esi, dword [esp + 0x38]
lea edx, [eax + 0x28]
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], edx
mov ecx, edi
mov edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
push 1
mov ecx, edx
push eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.00420310
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push 1
push ecx
push ebp
mov dword [esi + 0x14], eax
call fcn.00415950
mov edx, dword [esp + 0x44]
push 1
push edx
push ebp
mov dword [esi + 0x18], eax
call fcn.0041a470
mov dword [esi + 8], eax
mov eax, dword [esp + 0x3c]
add esp, 0x24
test eax, eax
je 0x4214a7
push eax
push ebx
xor edx, edx
xor edi, edi
mov eax, 0x13
call fcn.0041a0a0
push 1
push eax
push ebp
mov dword [esp + 0x2c], eax
call fcn.00420310
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov dword [ecx + 0xc], eax
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov dl, byte [esp + 0x13]
push eax
push ebp
mov byte [ebp + 0xea], dl
call fcn.004158d0
mov ecx, dword [esp + 0x20]
push ecx
push ebp
call fcn.004158d0
mov ebx, dword [esp + 0x30]
mov edi, ebp
call fcn.0040e580
mov edx, dword [esp + 0x3c]
push edx
push ebp
call fcn.0040fce0
mov al, byte [ebp + 0x1e]
add esp, 0x18
cmp al, 1
jne 0x421500
push esi
mov eax, ebp
call fcn.00416920
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x30]
cmp eax, 6
je 0x421528
cmp eax, 9
jne 0x42151f
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x42151f
mov eax, dword [esp + 0x1c]
mov byte [eax], 0x6a
jmp 0x42152f
mov ecx, dword [esp + 0x1c]
mov byte [ecx], 0x6b
jmp 0x42152f
mov edx, dword [esp + 0x1c]
mov byte [edx], 0x74
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x44]
mov dword [esi + 0x14], ecx
mov edx, dword [eax + 0x44]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x18], edx
mov dword [eax + ecx*4 + 0x1c], esi
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x24]
test ecx, ecx
setne dl
add dl, 0x6a
mov byte [esi + 8], dl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret