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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push dword [esp + 0x74]
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0
push eax
call fcn.00585c00
mov ecx, dword [esp + 0x28]
add esp, 8
test ecx, ecx
je 0x585ff6
mov eax, dword [esp + 0x68]
mov dword [eax], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov ebx, dword [esp + 0x70]
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x80]
push 0x81
push ebx
push eax
call fcn.0040fdcb
mov edi, dword [esp + 0x20]
test edi, edi
je 0x5862af
push str.Could_not_read_a_bitmap.
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 4
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004035e4
mov esi, dword [esp + 0x28]
add esp, 0xc
mov eax, esi
mov dword [esp + 0x20], esi
mov ebp, edi
mov dword [esp + 0x1c], ebp
test eax, eax
je 0x5860b9
mov eax, dword [edi]
mov ecx, edi
push 0xa17775
mov eax, dword [eax + 0x14]
call eax
test al, al
mov ecx, esi
mov eax, dword [esi]
push 0xa17775
mov eax, dword [eax + 0x14]
je 0x5860f8
call eax
test al, al
je 0x5860c9
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
mov dword [esp + 0x20], eax
cmp ebx, eax
je 0x5860b1
mov ecx, dword [edi + 8]
cmp ecx, dword [edi + 0xc]
je 0x58609e
mov eax, dword [ebx]
mov dword [ebx], 0
mov dword [ecx], eax
add dword [edi + 8], 4
jmp 0x5860a8
push ebx
push ecx
lea ecx, [edi + 4]
call fcn.00408cd3
add ebx, 4
cmp ebx, dword [esp + 0x20]
jne 0x586086
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ebx, dword [esp + 0x68]
mov dword [ebx], edi
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
lea ecx, [ebp + 4]
call fcn.004133c7
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x5860b9
mov eax, dword [ecx]
push 1
call dword [eax]
mov ebx, dword [esp + 0x68]
mov eax, ebx
mov dword [ebx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
call eax
test al, al
je 0x5861b5
mov ebx, dword [esi + 8]
lea ecx, [esi + 4]
mov ebp, dword [ecx]
mov dword [esp + 0x18], edi
cmp ebx, dword [ecx + 8]
je 0x5861a1
cmp ebp, ebx
je 0x586605
mov eax, dword [ebx - 4]
lea edi, [ebx - 4]
mov dword [edi], 0
mov dword [ebx], eax
add dword [ecx + 4], 4
cmp edi, ebp
je 0x586159
sub edi, 4
sub ebx, 4
cmp ebx, edi
je 0x586155
mov eax, dword [edi]
mov dword [edi], 0
mov ecx, dword [ebx]
mov dword [ebx], eax
test ecx, ecx
je 0x586155
mov eax, dword [ecx]
push 1
call dword [eax]
cmp edi, ebp
jne 0x586135
lea eax, [esp + 0x28]
cmp ebp, eax
je 0x58617d
mov ecx, dword [ebp]
xor edi, edi
mov eax, dword [esp + 0x1c]
mov dword [ebp], eax
test ecx, ecx
je 0x5866ae
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x586181
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x5866ae
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ebx, dword [esp + 0x68]
mov eax, ebx
mov dword [ebx], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.00408cd3
mov ecx, dword [esp + 0x18]
jmp 0x5866a4
push 0x10
call fcn.00405e93
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x586243
xor eax, eax
mov dword [ecx], 0x924738
lea ebx, [ecx + 4]
mov dword [esp + 0x20], eax
mov dword [ebx], eax
xor ebp, ebp
mov dword [ebx + 4], eax
mov ecx, ebx
mov dword [ebx + 8], eax
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
call fcn.00408cd3
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x586209
xor edi, edi
mov dword [eax], esi
add dword [ebx + 4], 4
jmp 0x58621a
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, ebx
call fcn.00408cd3
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x586228
mov eax, dword [ecx]
push 1
call dword [eax]
test edi, edi
je 0x586234
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov edx, dword [esp + 0x24]
xor esi, esi
mov ecx, 3
xor eax, eax
jmp 0x586251
mov esi, dword [esp + 0x24]
xor edx, edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x68]
mov dword [ebx], edx
test cl, 2
je 0x586273
and ecx, 0xfffffffd
mov dword [esp + 0x14], ecx
test eax, eax
je 0x586273
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [esp + 0x14]
test cl, 1
je 0x586284
test esi, esi
je 0x586284
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
test ebp, ebp
je 0x586291
mov eax, dword [ebp]
mov ecx, ebp
push 1
call dword [eax]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5860bf
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
xor edi, edi
xor esi, esi
mov eax, esi
mov dword [esp + 0x24], 0
shr eax, 5
lea ecx, [esp + 0x24]
push ecx
movzx eax, al
mov ecx, ebx
shl eax, 2
push 4
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x34], 0
push eax
call fcn.00412431
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x586317
lea ecx, [esp + 0x13]
mov dword [esp + 0x1c], 0
push ecx
push ecx
mov ecx, esp
mov byte [esp + 0x1b], 0
mov dword [ecx], eax
call fcn.0040fe9d
mov ecx, dword [esp + 0x24]
add esp, 8
test ecx, ecx
je 0x586317
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x24]
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
test dword [eax], edx
mov eax, dword [esp + 0x78]
je 0x586335
mov dword [eax + esi*4], edi
inc edi
jmp 0x58633c
mov dword [eax + esi*4], 0xffffffff
inc esi
cmp esi, 0x1000
jbe 0x5862b3
mov esi, dword [ebx + 4]
mov dword [esp + 0x18], esi
test esi, esi
je 0x58635f
lock inc dword [esi + 4]
mov esi, dword [ebx + 4]
mov dword [esp + 0x18], esi
mov eax, dword [ebx]
xor edi, edi
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
test al, al
jne 0x5863b8
test edx, edx
je 0x5863ae
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x10]
mov ecx, dword [ebx + 0xc]
mov ebp, eax
mov esi, dword [ebx + 4]
sub ebp, ecx
mov edi, dword [esp + 0x44]
jmp 0x5863b0
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
test esi, esi
je 0x5863d2
lock inc dword [esi + 4]
mov esi, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0x14]
shr ebp, 2
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x10]
xor ebx, ebx
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ebp
cmp edi, ebp
jne 0x58642c
cmp dword [esp + 0x34], edx
jne 0x58642c
cmp dword [esp + 0x38], esi
jne 0x58642c
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004048a9
add esp, 8
test al, al
je 0x58647c
push edi
lea ecx, [esp + 0x30]
call fcn.00402f18
mov edi, dword [esp + 0x44]
mov edx, dword [eax]
mov eax, edx
shr eax, 1
and eax, 0x55555555
sub edx, eax
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, dword [esp + 0x24]
mov eax, ecx
shr eax, 4
add eax, ecx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
add ebx, eax
inc edi
mov dword [esp + 0x44], edi
jmp 0x586406
mov esi, dword [esp + 0x18]
or edi, 0xffffffff
test esi, esi
je 0x5864a6
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x5864a6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x5864a6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x5864cc
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x5864cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x5864cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x24]
push ebx
push dword [esp + 0x70]
push eax
call fcn.0040fdcb
mov edi, dword [esp + 0x24]
test edi, edi
je 0x5867a7
push str.Hash_buckets_corrupted.
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 4
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040109b
mov esi, dword [esp + 0x2c]
add esp, 0xc
mov eax, esi
mov dword [esp + 0x18], esi
mov ebp, edi
mov dword [esp + 0x20], ebp
test eax, eax
je 0x5860b9
mov eax, dword [edi]
mov ecx, edi
push 0xa17775
mov eax, dword [eax + 0x14]
call eax
test al, al
mov ecx, esi
mov eax, dword [esi]
push 0xa17775
mov eax, dword [eax + 0x14]
je 0x5865e2
call eax
test al, al
je 0x586590
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], eax
cmp ebx, eax
je 0x5860b1
nop
mov ecx, dword [edi + 8]
cmp ecx, dword [edi + 0xc]
je 0x586578
mov eax, dword [ebx]
mov dword [ebx], 0
mov dword [ecx], eax
add dword [edi + 8], 4
jmp 0x586582
push ebx
push ecx
lea ecx, [edi + 4]
call fcn.00408cd3
add ebx, 4
cmp ebx, dword [esp + 0x24]
jne 0x586560
jmp 0x5860b1
mov eax, dword [edi + 8]
lea ecx, [edi + 4]
mov dword [esp + 0x20], esi
cmp eax, dword [ecx + 8]
je 0x5865b5
mov ebx, dword [esp + 0x68]
mov dword [eax], esi
mov eax, ebx
add dword [ecx + 4], 4
mov dword [ebx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00408cd3
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x5860b9
mov eax, dword [ecx]
push 1
call dword [eax]
mov ebx, dword [esp + 0x68]
mov eax, ebx
mov dword [ebx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
call eax
test al, al
je 0x5866be
mov ebx, dword [esi + 8]
lea ecx, [esi + 4]
mov ebp, dword [ecx]
mov dword [esp + 0x1c], edi
cmp ebx, dword [ecx + 8]
je 0x586695
cmp ebp, ebx
jne 0x58661b
mov dword [ebx], edi
mov ebx, dword [esp + 0x68]
mov eax, ebx
add dword [ecx + 4], 4
mov dword [ebx], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [ebx - 4]
lea edi, [ebx - 4]
mov dword [edi], 0
mov dword [ebx], eax
add dword [ecx + 4], 4
cmp edi, ebp
je 0x586655
sub edi, 4
sub ebx, 4
cmp ebx, edi
je 0x586651
mov eax, dword [edi]
mov dword [edi], 0
mov ecx, dword [ebx]
mov dword [ebx], eax
test ecx, ecx
je 0x586651
mov eax, dword [ecx]
push 1
call dword [eax]
cmp edi, ebp
jne 0x586631
lea eax, [esp + 0x28]
cmp ebp, eax
je 0x586675
mov ecx, dword [ebp]
xor edi, edi
mov eax, dword [esp + 0x20]
mov dword [ebp], eax
test ecx, ecx
je 0x5866ae
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x586679
mov edi, dword [esp + 0x20]
test edi, edi
je 0x5866ae
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ebx, dword [esp + 0x68]
mov eax, ebx
mov dword [ebx], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00408cd3
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x5866ae
mov eax, dword [ecx]
push 1
call dword [eax]
mov ebx, dword [esp + 0x68]
mov eax, ebx
mov dword [ebx], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push 0x10
call fcn.00405e93
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x586750
xor eax, eax
mov dword [ecx], 0x924738
lea ebx, [ecx + 4]
mov dword [esp + 0x18], eax
mov dword [ebx], eax
xor ebp, ebp
mov dword [ebx + 4], eax
mov ecx, ebx
mov dword [ebx + 8], eax
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
call fcn.00408cd3
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x586716
xor edi, edi
mov dword [eax], esi
add dword [ebx + 4], 4
jmp 0x586727
lea ecx, [esp + 0x20]
push ecx
push eax
mov ecx, ebx
call fcn.00408cd3
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x586735
mov eax, dword [ecx]
push 1
call dword [eax]
test edi, edi
je 0x586741
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov edx, dword [esp + 0x24]
xor esi, esi
mov ecx, 0xc
xor eax, eax
jmp 0x58675e
mov esi, dword [esp + 0x24]
xor edx, edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x68]
mov dword [ebx], edx
test cl, 8
je 0x586780
and ecx, 0xfffffff7
mov dword [esp + 0x14], ecx
test eax, eax
je 0x586780
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [esp + 0x14]
test cl, 4
je 0x586791
test esi, esi
je 0x586791
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
test ebp, ebp
je 0x58679e
mov eax, dword [ebp]
mov ecx, ebp
push 1
call dword [eax]
mov eax, dword [esp + 0x18]
jmp 0x586295
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword [eax], 0
pop ebx
add esp, 0x54
ret