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

Disassembly:
push 0xffffffffffffffff
push 0x5ced21
mov eax, dword fs:[0]
push eax
sub esp, 0xa80
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0xa7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0xa94]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xaa4]
mov esi, ecx
xor ebx, ebx
push ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
call fcn.00572850
push 0xffffffffffffffff
lea eax, [esi + 0x24]
push ebx
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00401620
mov dword [esp + 0x5c], esi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x108]
push ecx
mov ecx, 0x658948
mov dword [esp + 0xaa4], ebx
call fcn.00562920
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0xa9c], 0xffffffff
jb 0x580419
mov edx, dword [esp + 0x44]
push edx
call fcn.0059e6bb
add esp, 4
mov eax, dword [ebp]
mov edx, dword [eax + 0x90]
lea ecx, [esp + 0x18]
push ecx
push str.select_block
push ebp
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
xor eax, eax
cmp dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
jle 0x580519
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
lea edi, [esp + 0x20]
push edi
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
mov edx, dword [esp + 0x20]
push ebx
push 0x80
lea ecx, [esp + 0x118]
push ecx
push str.pair_item
push edx
call fcn.005585b0
add esp, 0x14
cmp byte [esp + 0x110], bl
je 0x5804fa
lea eax, [esp + 0x110]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5804a5
sub eax, edx
push eax
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x48]
call fcn.00401590
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esi + 0x324]
mov dword [esp + 0xaa0], 1
call fcn.0040fac0
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0xa9c], 0xffffffff
jb 0x5804fa
mov edx, dword [esp + 0x44]
push edx
call fcn.0059e6bb
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jl 0x580450
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x90]
lea ecx, [esp + 0x18]
push ecx
push str.picks
push ebp
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
xor eax, eax
cmp dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
jle 0x580629
lea esp, [esp]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
lea edi, [esp + 0x20]
push edi
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
mov edx, dword [esp + 0x20]
push ebx
push 0x104
lea ecx, [esp + 0x118]
push ecx
push str.pick
push edx
call fcn.005585b0
add esp, 0x14
cmp byte [esp + 0x110], bl
je 0x58060a
lea eax, [esp + 0x110]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5805b5
sub eax, edx
push eax
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x48]
call fcn.00401590
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esi + 0x354]
mov dword [esp + 0xaa0], 2
call fcn.0040fac0
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0xa9c], 0xffffffff
jb 0x58060a
mov edx, dword [esp + 0x44]
push edx
call fcn.0059e6bb
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jl 0x580560
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x90]
lea ecx, [esp + 0x18]
push ecx
push 0x5f3138
push ebp
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
xor eax, eax
cmp dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
jle 0x5807fc
lea ebp, [esi + 0x38c]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
lea esi, [esp + 0x20]
push esi
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
push 0x40
call fcn.0059e72d
add esp, 4
cmp eax, ebx
je 0x5806b3
mov dword [eax + 0x14], ebx
mov ecx, 0xf
mov dword [eax + 0x18], ecx
mov byte [eax + 4], bl
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], ebx
mov byte [eax + 0x20], bl
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov esi, eax
jmp 0x5806b5
xor esi, esi
push 0x7f
lea ecx, [esp + 0x195]
push ebx
push ecx
mov dword [esp + 0x34], esi
mov byte [esp + 0x19c], bl
call fcn.005a06a0
push 0x7f
lea edx, [esp + 0x221]
push ebx
push edx
mov byte [esp + 0x228], bl
call fcn.005a06a0
mov ecx, dword [esp + 0x38]
push ebx
push 0x80
lea eax, [esp + 0x1b0]
push eax
push str.owner
push ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebx
call fcn.005585b0
mov eax, dword [esp + 0x4c]
push ebx
push 0x80
lea edx, [esp + 0x244]
push edx
push 0x5f3150
push eax
call fcn.005585b0
mov edx, dword [esp + 0x60]
add esp, 0x40
lea ecx, [esp + 0x34]
push ecx
push str.offs_x
push edx
call fcn.00558700
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x48]
push eax
push str.offs_y
push ecx
call fcn.00558700
lea eax, [esp + 0x1a8]
add esp, 0x18
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x580761
sub eax, edi
push eax
lea edx, [esp + 0x194]
push edx
mov ecx, esi
call fcn.00401590
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x38], eax
lea eax, [esp + 0x210]
mov dword [esi + 0x3c], ecx
add esi, 0x1c
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x580795
sub eax, edi
push eax
lea eax, [esp + 0x214]
push eax
mov ecx, esi
call fcn.00401590
mov esi, dword [ebp + 0x14]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x28]
push ecx
push edx
push esi
mov ecx, ebp
call fcn.00573690
push 1
mov ecx, ebp
mov edi, eax
call fcn.0056a0b0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jl 0x580672
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x7ff
lea eax, [esp + 0x295]
push ebx
push eax
mov byte [esp + 0x29c], bl
call fcn.005a06a0
push ebx
push 0x800
lea ecx, [esp + 0x2a4]
push ecx
push 0x5f3184
push ebp
call fcn.005585b0
mov ebp, 0xf
lea eax, [esp + 0x2b0]
add esp, 0x20
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x580860
sub eax, edx
push eax
lea edx, [esp + 0x294]
push edx
lea ecx, [esp + 0x68]
call fcn.00401590
mov dword [esp + 0xa9c], 3
mov dword [esp + 0x7c], 0x5dc5e4
mov dword [esp + 0x84], 0x5f32ec
mov dword [esp + 0xd0], 0x5dbfac
push ebx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0xaa4], 4
mov dword [esp + 0x30], 1
call fcn.0045fc50
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x88]
mov ecx, eax
mov dword [esp + 0xa9c], 5
mov dword [esp + edx + 0x7c], 0x5f3248
mov dword [esp + 0x2c], eax
call fcn.00451cf0
mov eax, dword [esp + 0x64]
mov edi, 0x10
mov byte [esp + 0xa9c], 6
mov dword [esp + 0x88], 0x5f320c
cmp dword [esp + 0x78], edi
jae 0x58091b
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x74]
push ebx
push ecx
push eax
lea ecx, [esp + 0x94]
call fcn.00580fa0
mov byte [esp + 0xa9c], 8
cmp dword [esp + 0x78], edi
jb 0x580949
mov edx, dword [esp + 0x64]
push edx
call fcn.0059e6bb
add esp, 4
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x84], 1
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov byte [esp + 0x17], bl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jne 0x5809e7
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x80]
call fcn.00584620
mov eax, dword [esp + 0x1c]
cmp byte [esp + 0x17], bl
je 0x5809c7
mov edi, dword [esi + 0x3bc]
mov edx, dword [edi + 4]
add esi, 0x3a8
lea ecx, [esp + 0x2c]
push ecx
push edx
push edi
mov ecx, esi
mov dword [esp + 0x3c], eax
call fcn.0046a660
push 1
mov ecx, esi
mov ebp, eax
call fcn.0046df50
mov esi, dword [esp + 0x38]
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
jmp 0x5809cb
mov dword [esp + 0x2c], eax
cmp byte [esp + 0x17], bl
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 4]
sete cl
test byte [esp + eax + 0x84], 1
mov byte [esp + 0x17], cl
je 0x580972
mov ecx, esi
call fcn.0057f8a0
lea ecx, [esp + 0xd0]
mov dword [esp + 0xa9c], 0xffffffff
call fcn.005810c0
lea ecx, [esp + 0xd0]
push ecx
mov dword [esp + 0xd4], 0x5dbeb8
call fcn.0059d901
add esp, 4
mov ecx, dword [esp + 0xa94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa7c]
xor ecx, esp
call fcn.0059e619
add esp, 0xa8c
ret 4