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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40c0f5
sub esp, 0x4c
cmp dword [0x585248], 2
je 0x40c0de
mov edx, dword [esp + 0x50]
test edx, edx
je 0x40c05e
movzx ebx, byte [0x58551c]
test bl, bl
je 0x40ba38
mov ebx, dword [0x585528]
test ebx, ebx
je 0x40b9de
mov eax, dword [esp + 0x54]
test eax, eax
je 0x40b9b7
test edx, 7
jne 0x40b992
mov eax, 8
jmp 0x40b9bc
test edx, 3
jne 0x40b9a1
mov eax, 4
jmp 0x40b9bc
test edx, 1
jne 0x40b9b0
mov eax, 2
jmp 0x40b9bc
mov eax, 1
jmp 0x40b9bc
mov eax, 0x10
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [0x586de0]
mov dword [esp + 8], eax
call dbg.runtime.persistentalloc
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
add esp, 0x4c
ret
movzx ebx, byte [0x585430]
test bl, bl
je 0x40ba38
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebp, dword [ebx + 0x54]
cmp dword [0x585438], ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov ebx, dword [ebx + 0x50]
cmp dword [0x585434], ebx
sete bl
and ebp, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x40ba38
mov ebx, dword [0x58543c]
add ebx, 1
mov ebp, dword [0x585440]
mov dword [0x58543c], ebx
adc ebp, 0
mov dword [0x585440], ebp
mov ebx, dword [0x585240]
test ebx, ebx
je 0x40ba92
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebp, dword [ebx + 0x18]
mov ebp, dword [ebp + 0x4c]
test ebp, ebp
jne 0x40ba5b
mov ebp, ebx
mov ebx, dword [ebp + 0xe4]
sub ebx, edx
mov esi, dword [ebp + 0xe8]
mov dword [ebp + 0xe4], ebx
sbb esi, 0
mov dword [ebp + 0xe8], esi
test esi, esi
jge 0x40ba94
mov dword [esp + 0x44], ebp
mov dword [esp], ebp
call dbg.runtime.gcAssistAlloc
mov edx, dword [esp + 0x50]
mov ebp, dword [esp + 0x44]
jmp 0x40ba94
xor ebp, ebp
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov esi, dword [ebx + 0x18]
nop
inc dword [esi + 0x78]
mov esi, dword [ebx + 0x18]
test byte [ebx], al
mov ebx, dword [esi + 0x68]
test ebx, ebx
jne 0x40c0c8
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
cmp dword [esi + 0x2c], ebx
je 0x40c0b2
mov dword [esi + 0x68], 1
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x18]
mov ebx, dword [ebx + 0x54]
test ebx, ebx
je 0x40baf1
mov ebx, dword [ebx + 0x30]
jmp 0x40baf7
mov ebx, dword [0x58525c]
test ebx, ebx
je 0x40c09c
mov edi, dword [esp + 0x54]
test edi, edi
je 0x40bb17
mov eax, ebp
mov ebp, dword [edi + 4]
test ebp, ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
jmp 0x40bb1e
mov eax, ebp
mov ebp, 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], ebx
xchg ebp, eax
mov byte [esp + 0x19], al
xchg ebp, eax
mov dword [esp + 0x48], eax
cmp edx, 0x8000
ja 0x40bd7d
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x40bc5f
cmp edx, 0x10
jae 0x40bc5f
mov ecx, dword [ebx + 0xc]
test edx, 7
jne 0x40bb62
add ecx, 7
and ecx, 0xfffffff8
jmp 0x40bb8c
cmp edx, 0xc
jne 0x40bb6f
add ecx, 7
and ecx, 0xfffffff8
jmp 0x40bb8c
test edx, 3
jne 0x40bb7f
add ecx, 3
and ecx, 0xfffffffc
jmp 0x40bb8c
test edx, 1
jne 0x40bb8c
nop
inc ecx
and ecx, 0xfffffffe
lea eax, [ecx + edx]
cmp eax, 0x10
ja 0x40bbdd
mov edi, dword [ebx + 8]
test edi, edi
je 0x40bbdd
add ecx, edi
mov dword [ebx + 0xc], eax
inc dword [ebx + 0x10]
mov dword [esi + 0x68], 0
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov edx, dword [esi + 0x78]
lea ebx, [edx - 1]
mov dword [esi + 0x78], ebx
cmp edx, 1
jne 0x40bbd5
movzx edx, byte [eax + 0x65]
test dl, dl
je 0x40bbd5
mov dword [eax + 8], 0xfffffade
mov dword [esp + 0x5c], ecx
add esp, 0x4c
ret
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp], eax
call dbg.runtime.nextFreeFast
mov eax, dword [esp + 4]
test eax, eax
je 0x40bbfc
mov ecx, dword [esp + 0x1c]
xor edx, edx
jmp 0x40bc1a
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov byte [esp + 4], 5
call dbg.runtime.(*mcache).nextFree
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movzx edx, byte [esp + 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x28]
cmp dword [ebp + 0xc], ebx
ja 0x40bc49
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40bc53
mov esi, eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
jmp 0x40bc55
mov esi, eax
mov eax, 0x10
jmp 0x40bd76
cmp edx, 0x3f8
ja 0x40bc87
mov ecx, esi
lea esi, [edx + 7]
shr esi, 3
cmp esi, 0x81
jae 0x40c090
lea edx, [0x4aaf40]
movzx edx, byte [edx + esi]
jmp 0x40bcae
mov ecx, esi
lea esi, [edx - 0x381]
shr esi, 7
cmp esi, 0xf9
jae 0x40c084
lea edi, str._______________________....______0001123333333333444444444455666677777888888888889999999999::::::___________________________________________________________________________AAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
movzx esi, byte [edi + esi]
mov edi, dword [esp + 0x54]
mov edx, esi
movzx esi, dl
cmp esi, 0x44
jae 0x40c078
lea edi, [0x4ab080]
movzx esi, word [edi + esi*2]
nop
shl edx, 1
xchg ebp, eax
movzx edi, al
xchg ebp, eax
or edx, edi
movzx edi, dl
cmp edi, 0x88
jae 0x40c06c
mov byte [esp + 0x17], dl
mov dword [esp + 0x30], esi
mov eax, dword [ebx + edi*4 + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp], eax
call dbg.runtime.nextFreeFast
mov eax, dword [esp + 4]
test eax, eax
je 0x40bd05
mov ecx, dword [esp + 0x1c]
xor edx, edx
jmp 0x40bd27
mov eax, dword [esp + 0x28]
mov dword [esp], eax
movzx ecx, byte [esp + 0x17]
mov byte [esp + 4], cl
call dbg.runtime.(*mcache).nextFree
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movzx edx, byte [esp + 0x10]
movzx ebx, byte [esp + 0x58]
test bl, bl
je 0x40bd68
movzx ebp, byte [ecx + 0x3c]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x40bd68
mov dword [esp + 0x40], eax
mov byte [esp + 0x18], dl
mov dword [esp + 0x2c], ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
call dbg.runtime.memclrNoHeapPointers
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
movzx edx, byte [esp + 0x18]
movzx ebx, byte [esp + 0x58]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x30]
mov edi, 1
jmp 0x40bde9
movzx ecx, byte [esp + 0x58]
test cl, cl
je 0x40bd96
xor ebp, 1
xchg ebp, eax
mov byte [esp + 0x1b], al
xchg ebp, eax
movzx ebp, byte [esp + 0x19]
jmp 0x40bda0
mov dword [esp + 0x34], eax
xor eax, eax
mov byte [esp + 0x1b], al
mov dword [esp], ebx
mov dword [esp + 4], edx
movzx eax, byte [esp + 0x1b]
mov byte [esp + 8], al
xchg ebp, eax
mov byte [esp + 9], al
xchg ebp, eax
call dbg.runtime.(*mcache).allocLarge
mov ecx, dword [esp + 0xc]
movzx eax, byte [esp + 0x10]
mov dword [ecx + 0x18], 1
mov word [ecx + 0x38], 1
mov esi, dword [ecx + 0xc]
nop
mov edx, dword [ecx + 0x40]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x28]
mov edi, eax
mov eax, edx
mov edx, 1
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], eax
mov byte [esp + 0x18], dl
xchg edi, eax
mov byte [esp + 0x1a], al
xchg edi, eax
mov dword [esp + 0x1c], ecx
movzx edx, byte [esp + 0x19]
test dl, dl
je 0x40be0c
xor edx, edx
jmp 0x40be69
mov edx, dword [esp + 0x54]
cmp dword [0x55f1d0], edx
jne 0x40be1d
mov ebx, 0x28
mov dword [esp + 0x24], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call dbg.runtime.heapBitsSetType
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
cmp edx, ecx
jbe 0x40be59
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x40be53
mov ebp, edx
sub edx, ecx
lea ecx, [edx + ebx]
jmp 0x40be5e
mov ebp, edx
xor ecx, ecx
jmp 0x40be5e
mov ecx, dword [eax + 4]
mov ebp, edx
mov edx, dword [esp + 0x28]
add dword [edx + 4], ecx
mov edx, ecx
mov ebx, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edx
call dbg.runtime.publicationBarrier
mov eax, dword [0x585248]
test eax, eax
je 0x40bea4
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], edx
call dbg.runtime.gcmarknewobject
mov eax, dword [0x5851e0]
test eax, eax
jle 0x40bee9
cmp eax, 1
je 0x40bec7
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [esp + 0x30]
cmp edx, ecx
jae 0x40becb
sub ecx, edx
mov dword [eax], ecx
jmp 0x40beed
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call dbg.runtime.profilealloc
mov edx, dword [esp + 0x30]
jmp 0x40beed
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
mov dword [eax + 0x68], 0
nop
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ebx, dword [eax + 0x78]
lea ebp, [ebx - 1]
mov dword [eax + 0x78], ebp
cmp ebx, 1
jne 0x40bf23
movzx eax, byte [ecx + 0x65]
test al, al
je 0x40bf23
mov dword [ecx + 8], 0xfffffade
movzx eax, byte [esp + 0x1a]
test al, al
jne 0x40bf49
movzx eax, byte [esp + 0x58]
test al, al
je 0x40bf49
mov dword [esp], edx
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call dbg.runtime.memclrNoHeapPointersChunked
mov edx, dword [esp + 0x30]
movzx eax, byte [0x58551c]
test al, al
je 0x40bfcd
mov eax, dword [0x585520]
test eax, eax
je 0x40bf7a
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
call dbg.runtime.tracealloc
mov edx, dword [esp + 0x30]
movzx eax, byte [0x585430]
test al, al
je 0x40bfcd
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x50]
cmp dword [0x585434], ecx
sete cl
mov eax, dword [eax + 0x54]
cmp dword [0x585438], eax
sete al
and eax, ecx
test al, al
je 0x40bfcd
mov eax, dword [0x585444]
add eax, edx
mov ecx, dword [0x585448]
mov dword [0x585444], eax
adc ecx, 0
mov dword [0x585448], ecx
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40bff8
mov ecx, dword [eax + 0xe4]
mov ebx, dword [esp + 0x24]
sub edx, ebx
sub ecx, edx
mov edx, dword [eax + 0xe8]
mov dword [eax + 0xe4], ecx
sbb edx, 0
mov dword [eax + 0xe8], edx
movzx eax, byte [esp + 0x18]
test al, al
je 0x40c052
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
call dbg.runtime.gcTrigger.test
movzx eax, byte [esp + 0x10]
test al, al
je 0x40c052
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
call dbg.runtime.gcStart
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
add esp, 0x4c
ret
lea eax, [0x5852c8]
mov dword [esp + 0x5c], eax
add esp, 0x4c
ret
mov eax, edi
mov ecx, 0x88
call dbg.runtime.panicIndex
mov eax, esi
mov ecx, 0x44
call dbg.runtime.panicIndex
mov eax, esi
mov ecx, 0xf9
call dbg.runtime.panicIndexU
mov eax, esi
mov ecx, 0x81
call dbg.runtime.panicIndexU
lea eax, [0x4ddc75]
mov dword [esp], eax
mov dword [esp + 4], 0x34
call dbg.runtime.throw
lea eax, [0x4d7d16]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call dbg.runtime.throw
lea eax, [0x4d6674]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call dbg.runtime.throw
lea eax, [0x4dda78]
mov dword [esp], eax
mov dword [esp + 4], 0x32
call dbg.runtime.throw
nop
call dbg.runtime.morestack_noctxt
jmp dbg.runtime.mallocgc