Function at 0x58b170
Capabilities:
Enumerate pe sections

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 + 0x28], 0
je 0x58baaa
push edi
mov eax, ebp
call fcn.00546ce0
add esp, 4
test eax, eax
jne 0x58baaa
test byte [edi + 0x1e], 0x10
jne 0x58baaa
cmp ebx, 0x63
jne 0x58b1c1
mov dword [esp + 0x48], 2
jmp 0x58b1cf
cmp ebx, 2
je 0x58b1cf
cmp ebx, 1
jne 0x58baaa
mov eax, dword [esi + 8]
cmp word [eax], 1
jne 0x58baaa
cmp dword [eax + 0x18], 0
jne 0x58baaa
cmp dword [esi + 0xc], 0
jne 0x58baaa
cmp dword [esi + 0x18], 0
jne 0x58baaa
cmp dword [esi + 0x10], 0
jne 0x58baaa
cmp dword [esi + 0x28], 0
jne 0x58baaa
cmp dword [esi + 0x1c], 0
jne 0x58baaa
test byte [esi + 6], 1
jne 0x58baaa
mov esi, dword [esi]
cmp dword [esi], 1
jne 0x58baaa
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
cmp byte [edx], 0x71
jne 0x58baaa
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 8]
push ecx
push 0
mov eax, ebp
call fcn.0058a380
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
je 0x58baaa
cmp eax, edi
je 0x58baaa
test byte [eax + 0x1e], 0x10
jne 0x58baaa
cmp dword [eax + 0x18], 0
jne 0x58baaa
mov ebp, dword [edi + 8]
cmp ebp, dword [eax + 8]
jne 0x58baaa
mov edx, dword [edi + 4]
cmp edx, dword [eax + 4]
jne 0x58baaa
xor ebx, ebx
test ebp, ebp
jle 0x58b2ee
mov ecx, dword [esp + 0x18]
mov eax, edi
mov esi, dword [eax + 0xc]
mov edi, dword [ecx + 0xc]
add esi, 0x10
add edi, 0x10
jmp 0x58b2b0
mov dl, byte [esi + 6]
cmp dl, byte [edi + 6]
jne 0x58baaa
mov edx, dword [edi]
mov ecx, dword [esi]
call fcn.005464a0
test eax, eax
je 0x58baaa
cmp byte [esi + 4], 0
je 0x58b2dd
cmp byte [edi + 4], 0
je 0x58baaa
add ebx, 1
add esi, 0x18
add edi, 0x18
cmp ebx, ebp
jl 0x58b2b0
mov edi, dword [esp + 0x44]
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x58b33f
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x10]
lea esp, [esp]
cmp byte [ebx + 0x18], 0
je 0x58b30e
mov dword [esp + 0x28], 1
mov edi, esi
test edi, edi
je 0x58baaa
call fcn.005464c0
test eax, eax
jne 0x58b330
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x58b318
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
test edi, edi
je 0x58baaa
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x58b300
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x58b363
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edx + 0x28]
push eax
call fcn.0054d800
add esp, 8
test eax, eax
jne 0x58baaa
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + 0x40]
mov edi, dword [esp + 0x40]
mov ecx, dword [edi]
call fcn.005466b0
mov esi, eax
mov dword [esp + 0x2c], esi
call fcn.00555dd0
mov ebp, eax
push esi
mov eax, edi
call fcn.0056c6d0
mov eax, dword [edi + 0x44]
mov ebx, dword [esp + 0x48]
lea esi, [eax + 1]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
lea edx, [esi + 1]
mov dword [edi + 0x44], edx
push eax
mov edx, edi
mov dword [esp + 0x1c], esi
call fcn.0054e6e0
mov ecx, dword [esp + 0x54]
push 0x27
push ecx
push esi
mov dword [esp + 0x48], eax
mov esi, ebx
mov eax, esi
mov ecx, edi
call fcn.0055cd70
xor ebx, ebx
add esp, 0x14
cmp dword [esi + 4], ebx
jge 0x58b3d6
mov edx, esi
cmp dword [edx + 0x10], ebx
jne 0x58b3e0
cmp dword [esp + 0x28], ebx
je 0x58b484
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x58b3fd
mov edi, ebp
call fcn.0054c1a0
test eax, eax
je 0x58b3fd
mov dword [esp + 0x28], 1
jmp 0x58b42a
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x14]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x41
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov dword [esp + 0x28], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x58b444
mov edi, ebp
call fcn.0054c1a0
test eax, eax
je 0x58b444
mov esi, 1
jmp 0x58b469
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
mov dword [esp + 0x24], esi
jle 0x58b488
lea edx, [ecx + ecx*4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx*4 + 8], eax
jmp 0x58b488
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
push 0x26
push edx
push eax
mov eax, dword [esp + 0x24]
call fcn.0055cd70
mov esi, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp + 0x10], esi
jg 0x58b4c1
mov edi, ebp
call fcn.0054c1a0
test eax, eax
je 0x58b4c1
mov dword [esp + 0x30], 1
jmp 0x58b4ee
mov edx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x10]
mov byte [eax], 0x41
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x40]
mov eax, edx
call fcn.00545610
mov dword [esp + 0x1c], eax
mov eax, edx
call fcn.00545610
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [esp + 0x44]
cmp dword [eax + 4], ebx
mov dword [esp + 0x38], esi
jl 0x58b5b8
cmp dword [ebp + 0x10], ecx
mov dword [esp + 0x28], ecx
jg 0x58b539
mov edi, ebp
call fcn.0054c1a0
test eax, eax
je 0x58b535
mov ecx, 1
jmp 0x58b562
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x10]
mov byte [eax], 0x3d
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [esp + 0x14]
push esi
push ebx
push eax
push 0x34
mov eax, ebp
mov dword [esp + 0x30], ecx
call fcn.0054c220
mov ecx, dword [esp + 0x58]
push 0xfffffffffffffffe
mov edi, eax
mov eax, dword [esp + 0x54]
push str.PRIMARY_KEY_must_be_unique
push ecx
call fcn.0055c0b0
mov eax, dword [ebp + 0xc]
add esp, 0x1c
cmp eax, edi
jle 0x58b5a1
mov ecx, dword [ebp + 0x14]
lea edx, [edi + edi*4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
push esi
push edx
call fcn.0054e750
add esp, 8
jmp 0x58b63a
cmp dword [eax + 0x10], ebx
mov dword [esp + 0x34], ecx
jne 0x58b5f2
cmp dword [ebp + 0x10], ecx
jg 0x58b5dc
mov edi, ebp
call fcn.0054c1a0
test eax, eax
je 0x58b5d8
mov ecx, 1
jmp 0x58b636
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x14]
mov byte [eax], 0x36
jmp 0x58b621
cmp dword [ebp + 0x10], ecx
jg 0x58b60d
mov edi, ebp
call fcn.0054c1a0
test eax, eax
je 0x58b609
mov ecx, 1
jmp 0x58b636
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x10]
mov byte [eax], 0x3d
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x34], eax
jg 0x58b655
mov edi, ebp
call fcn.0054c1a0
test eax, eax
jne 0x58b682
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x10]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov byte [eax], 0x3c
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push esi
push edx
push eax
push 0x37
mov eax, ebp
call fcn.0054c220
mov eax, dword [ebp + 0x14]
add esp, 0x10
cmp eax, ebx
je 0x58b6ab
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0xb
mov edx, dword [esp + 0x44]
mov ecx, dword [edx]
mov edx, dword [ebp + 0x14]
cmp edx, ebx
mov edi, dword [ebp]
mov dword [esp + 0x28], ecx
je 0x58b70e
cmp byte [edi + 0x1e], bl
jne 0x58b70e
mov eax, dword [ebp + 0xc]
sub eax, 1
lea eax, [eax + eax*4]
mov ecx, dword [edx + eax*4 + 0x10]
lea esi, [edx + eax*4]
movsx eax, byte [esi + 1]
call fcn.0054c490
cmp dword [esp + 0x28], ebx
mov dword [esi + 0x10], ebx
jne 0x58b6ee
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x58b715
mov ecx, dword [esp + 0x28]
call fcn.0053eb20
mov edx, dword [ebp]
mov edi, eax
mov ebx, ecx
call fcn.00549690
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
xor ebx, ebx
jmp 0x58b715
xor eax, eax
call fcn.0054c490
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x58b728
mov edi, ebp
call fcn.0054c1a0
test eax, eax
jne 0x58b755
mov edx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov byte [eax], 0x43
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x10]
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x58b972
jmp 0x58b770
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + 0x10]
cmp esi, ebx
je 0x58b794
mov ebx, dword [esp + 0x20]
nop
mov edi, esi
call fcn.005464c0
test eax, eax
jne 0x58b792
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x58b780
xor ebx, ebx
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x34], eax
jg 0x58b7af
mov edi, ebp
call fcn.0054c1a0
test eax, eax
jne 0x58b7d8
mov eax, dword [esp + 0x34]
add dword [ebp + 0xc], 1
mov ecx, dword [esp + 0x10]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
mov byte [eax], 0x2b
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x34], eax
jg 0x58b7f3
mov edi, ebp
call fcn.0054c1a0
test eax, eax
jne 0x58b81c
mov eax, dword [esp + 0x34]
add dword [ebp + 0xc], 1
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
mov byte [eax], 0x2b
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov edx, dword [esp + 0x40]
push esi
push edx
call fcn.005719c0
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x18]
push 0xfffffffffffffff0
push eax
mov eax, dword [esp + 0x3c]
push 0x26
mov edi, ebp
call fcn.00551e60
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x54]
push esi
push eax
call fcn.005719c0
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x30]
push 0xfffffffffffffff0
push eax
mov eax, dword [esp + 0x70]
push 0x27
call fcn.00551e60
mov esi, dword [ebp + 0xc]
add esp, 0x28
cmp dword [ebp + 0x10], esi
jg 0x58b880
call fcn.0054c1a0
test eax, eax
je 0x58b880
mov dword [esp + 0x28], 1
jmp 0x58b8ad
mov edx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x10]
mov byte [eax], 0x41
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov dword [esp + 0x28], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x58b8c0
mov edi, ebp
call fcn.0054c1a0
test eax, eax
jne 0x58b8ed
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov ecx, dword [esp + 0x10]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x1c]
mov byte [eax], 0x3b
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 1
push eax
push ecx
push 0x46
mov eax, ebp
call fcn.0054c220
mov esi, dword [ebp + 0xc]
add esp, 0x10
cmp dword [ebp + 0x10], esi
jg 0x58b918
mov edi, ebp
call fcn.0054c1a0
test eax, eax
jne 0x58b94a
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov ecx, dword [esp + 0x10]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
lea edx, [ecx + 1]
mov byte [eax], 0x43
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
jmp 0x58b94e
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jle 0x58b95f
mov edx, dword [ebp + 0x14]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x20]
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x58b770
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jle 0x58b987
mov edx, dword [ebp + 0x14]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
call fcn.00545630
mov esi, dword [esp + 0x1c]
call fcn.00545630
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x58b9b0
mov edi, ebp
call fcn.0054c1a0
test eax, eax
jne 0x58b9d9
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x10]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x2b
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x58b9ec
mov edi, ebp
call fcn.0054c1a0
test eax, eax
jne 0x58ba15
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x14]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x2b
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x58bab4
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x58ba38
mov edi, ebp
call fcn.0054c1a0
test eax, eax
mov ecx, dword [esp + 0x24]
jne 0x58ba5d
mov edx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov byte [eax], 6
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jle 0x58ba6e
mov edx, dword [ebp + 0x14]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x58ba81
mov edi, ebp
call fcn.0054c1a0
test eax, eax
jne 0x58baaa
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0xc], 1
mov edx, dword [esp + 0x14]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x2b
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x62], bl
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret