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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x180
movzx eax, byte [edx + 0x180]
mov ebx, edx
mov dword [esp + 0x40], ecx
test eax, eax
je 0x40d30e
cmp eax, 3
je 0x40d334
push 0x23
pop edx
mov ecx, 0x664cc0
push 0x664e58
call fcn.0063cd70
pop eax
ud2
lea eax, [esp + 0x60]
push 0x18
pop ecx
mov edi, eax
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x60]
push 0x118
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebx + 0x178], 0
lea esi, [ebx + 0x60]
lea edi, [esp + 0x18]
mov ecx, edi
mov edx, esi
push dword [ebp + 8]
call fcn.0040da20
pop eax
cmp dword [edi], 0
je 0x40d35c
mov eax, dword [esp + 0x40]
mov byte [eax + 0xc], 4
mov al, 3
jmp 0x40d9ac
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.0040754f
test ebx, ebx
je 0x40d3da
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x60]
mov dword [esp + 0x50], ebx
mov edx, esi
mov dword [esi], eax
mov dword [esi + 4], edi
and dword [esi + 8], 0
mov dword [esi + 0xc], 1
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edi
lea edi, [esp + 0x2c]
mov dword [esp + 0x5c], ecx
mov byte [esi + 0x18], 0x80
mov ecx, edi
call fcn.0055c9c7
cmp byte [edi], 0
je 0x40d3ed
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 8]
jmp 0x40d956
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0xc]
mov bl, 3
jmp 0x40d98d
cmp byte [esp + 0x2d], 0
mov ebx, dword [esp + 8]
je 0x40d660
movzx eax, byte [esp + 0x2e]
cmp eax, 0x5b
je 0x40d5e7
cmp eax, 0x7b
jne 0x40d6de
dec byte [esp + 0x78]
je 0x40d6c6
lea eax, [esp + 0x6c]
xor edi, edi
mov byte [esp + 0x17], 3
inc dword [eax - 4]
mov al, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edi
lea esi, [esp + 0x60]
lea ecx, [esp + 0x2c]
mov edx, esi
call fcn.0055c9c7
cmp byte [esp + 0x2c], 0
jne 0x40d657
cmp byte [esp + 0x2d], 0
je 0x40d78b
mov al, byte [esp + 0x2e]
movzx ecx, al
cmp ecx, 0x2c
je 0x40d483
cmp ecx, 0x7d
je 0x40d6a2
cmp byte [esp + 0x10], 0
jne 0x40d48e
jmp 0x40d7aa
cmp byte [esp + 0x10], 0
je 0x40d51b
mov edi, dword [esp + 8]
cmp al, 0x22
jne 0x40d738
inc dword [esp + 0x68]
and dword [esp + 0x74], 0
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x18]
mov edx, esi
push eax
call fcn.005da1af
pop eax
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x18], 2
je 0x40d7c3
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, edi
push 5
push str.error
call fcn.004bdd23
pop ecx
pop edx
test al, al
jne 0x40d59e
mov ecx, ebx
mov edx, edi
push 5
push str.queuestruct_ErrorResponsestruct_ErrorResponse_with_2_elements
call fcn.004bdd23
pop ecx
pop edx
test al, al
jne 0x40d54d
lea esi, [esp + 0x60]
mov ecx, esi
call fcn.0055ca1b
mov edi, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x10], 0
je 0x40d441
jmp 0x40d7bd
inc dword [esp + 0x68]
lea ecx, [esp + 0x18]
mov edx, esi
call fcn.0055c9c7
cmp byte [esp + 0x18], 0
mov edi, dword [esp + 8]
jne 0x40d722
cmp byte [esp + 0x19], 0
je 0x40d9d2
mov al, byte [esp + 0x1a]
jmp 0x40d492
cmp byte [esp + 0x17], 3
lea esi, [esp + 0x60]
jne 0x40da0c
mov ecx, esi
call fcn.0055fb6e
test eax, eax
jne 0x40d7bd
lea ecx, [esp + 0x18]
mov edx, esi
call fcn.004061bd
cmp byte [esp + 0x18], 0
mov edi, dword [esp + 8]
jne 0x40d722
mov al, byte [esp + 0x19]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x10], 0
mov byte [esp + 0x17], al
jmp 0x40d43d
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40d9f0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x60]
call fcn.004051cc
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 8]
test edi, edi
je 0x40d84f
mov edx, dword [esp + 4]
xor ecx, ecx
mov dword [esp + 0x10], 0
call fcn.00404e53
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x40d431
dec byte [esp + 0x78]
je 0x40d6c6
lea edx, [esp + 0x48]
inc dword [esp + 0x68]
mov dword [edx], esi
lea esi, [esp + 0x18]
mov byte [edx + 4], 1
mov ecx, esi
call fcn.0055d180
cmp dword [esi], 0
je 0x40d618
mov edi, dword [esp + 0x1c]
jmp 0x40d87b
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40d772
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x48]
lea edi, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp + 0x3c], ecx
mov ecx, edi
mov edx, esi
call fcn.0055c9c7
cmp byte [edi], 0
je 0x40d66c
mov edi, dword [esp + 0x30]
jmp 0x40d86e
mov ebx, dword [esp + 0x30]
jmp 0x40d7bf
lea edx, [esp + 0x18]
mov dword [edx], 5
jmp 0x40d6d0
cmp byte [esp + 0x2d], 0
je 0x40d82e
mov al, byte [esp + 0x2e]
movzx edx, al
cmp edx, 0x2c
je 0x40d6f8
cmp edx, 0x5d
je 0x40d9ba
cmp byte [esp + 0x4c], 0
jne 0x40d6ff
lea edx, [esp + 0x18]
mov dword [edx], 7
jmp 0x40d865
test edi, edi
je 0x40d83a
mov al, byte [esp + 0x17]
cmp al, 3
movzx eax, al
push 2
pop ecx
mov ebx, dword [esp + 8]
cmovne ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x40d7f3
lea edx, [esp + 0x18]
mov dword [edx], 0x15
lea ecx, [esp + 0x60]
call fcn.006426aa
jmp 0x40d954
lea ecx, [esp + 0x60]
lea edx, [esp + 0x44]
push 0x664f74
call fcn.006402e1
pop ecx
mov edi, eax
jmp 0x40d949
cmp byte [esp + 0x4c], 0
je 0x40d74c
cmp al, 0x5d
je 0x40d85b
lea edi, [esp + 0x18]
mov edx, esi
mov ecx, edi
call fcn.004061bd
cmp byte [edi], 0
je 0x40d72b
mov edi, dword [esp + 0x1c]
jmp 0x40d86e
mov ebx, dword [esp + 0x1c]
jmp 0x40d7c3
mov bl, byte [esp + 0x19]
mov edi, dword [esp + 0xc]
jmp 0x40d87d
movzx eax, al
lea edx, [esp + 0x18]
cmp eax, 0x7d
jne 0x40d797
mov dword [edx], 0x12
jmp 0x40d79d
inc dword [esi + 8]
lea edi, [esp + 0x18]
mov edx, esi
mov ecx, edi
call fcn.0055c9c7
cmp byte [edi], 0
jne 0x40d719
cmp byte [esp + 0x19], 0
je 0x40d9e1
mov al, byte [esp + 0x1a]
jmp 0x40d6ff
xor ecx, ecx
mov edx, 0x7fa948
push 0x66498c
call fcn.00640213
pop ecx
mov edi, eax
jmp 0x40d87b
lea edx, [esp + 0x18]
mov dword [edx], 3
jmp 0x40d7b4
mov dword [edx], 0x10
lea ecx, [esp + 0x60]
call fcn.006426aa
mov ebx, eax
jmp 0x40d7c3
lea edx, [esp + 0x18]
mov dword [edx], 8
lea ecx, [esp + 0x60]
call fcn.006426aa
mov ebx, eax
mov edi, dword [esp + 8]
mov eax, dword [esp + 4]
cmp dword [esp + 0xc], 0
je 0x40d7e7
mov ecx, dword [esp + 0xc]
mov edx, eax
call fcn.004bd77e
mov al, 3
mov ecx, ebx
mov ebx, edi
mov dword [esp + 0x10], eax
mov edi, ecx
jmp 0x40d7f3
mov cl, 3
mov eax, ebx
mov ebx, edi
mov dword [esp + 0x10], ecx
mov edi, eax
lea ecx, [esp + 0x60]
inc byte [ecx + 0x18]
call fcn.0055ccbd
mov esi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], edi
mov edx, dword [esp + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
cmp al, 3
mov byte [esp + 0x24], al
mov dword [esp + 0x28], esi
je 0x40d8b0
jmp 0x40d8cd
lea edx, [esp + 0x18]
mov dword [edx], 2
jmp 0x40d865
push 5
pop edx
mov ecx, str.error
call fcn.00640263
mov ebx, dword [esp + 8]
mov edi, eax
jmp 0x40d853
mov edi, dword [esp + 0x1c]
mov al, 3
mov dword [esp + 0x10], eax
jmp 0x40d7f3
lea edx, [esp + 0x18]
mov dword [edx], 0x12
mov ecx, esi
call fcn.006426aa
mov edi, eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
call fcn.004bd77e
mov bl, 3
lea ecx, [esp + 0x60]
inc byte [ecx + 0x18]
call fcn.0055ce75
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 4]
mov esi, eax
cmp bl, 3
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], esi
jne 0x40d8c7
mov ebx, dword [esp + 8]
mov al, 3
test esi, esi
je 0x40d8dc
lea eax, [esp + 0x28]
push eax
call fcn.0040473b
mov al, 3
add esp, 4
jmp 0x40d8dc
mov eax, ebx
mov ebx, dword [esp + 8]
test esi, esi
je 0x40d8dc
mov ecx, edi
call fcn.004bd77e
mov al, 3
mov edi, esi
cmp al, 3
je 0x40d949
movzx ecx, word [esp + 0x45]
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x47]
mov word [esp + 0x38], cx
lea ecx, [esp + 0x60]
mov byte [esp + 0x3a], al
call fcn.0055c835
test eax, eax
je 0x40d912
mov edx, dword [esp + 4]
mov ecx, edi
mov esi, eax
call fcn.004bd77e
jmp 0x40d956
movzx ecx, word [esp + 0x38]
mov al, byte [esp + 0x3a]
mov edx, dword [esp + 0x70]
mov esi, edi
mov edi, ebx
mov word [esp + 0x18], cx
mov ecx, dword [esp + 0x6c]
mov byte [esp + 0x1a], al
call fcn.004bd77e
movzx eax, word [esp + 0x18]
mov cl, byte [esp + 0x1a]
mov word [esp + 0x34], ax
mov byte [esp + 0x36], cl
jmp 0x40d974
lea edx, [esp + 0x60]
mov ecx, edi
call fcn.006404bd
mov esi, eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov edi, ebx
call fcn.004bd77e
mov ecx, esi
call fcn.005d85d1
mov esi, eax
mov al, 3
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x50]
call fcn.00579450
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x10]
mov dword [ecx], esi
mov dword [ecx + 4], eax
movzx eax, word [esp + 0x34]
mov dword [ecx + 8], edx
mov byte [ecx + 0xc], bl
mov ebx, edi
mov word [ecx + 0xd], ax
mov al, byte [esp + 0x36]
mov byte [ecx + 0xf], al
mov al, 1
mov byte [ebx + 0x180], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
mov edx, 0x7fa948
inc ecx
push 0x66498c
call fcn.00640213
pop ecx
jmp 0x40d86c
lea edx, [esp + 0x18]
mov dword [edx], 5
jmp 0x40d79d
lea edx, [esp + 0x18]
mov dword [edx], 5
jmp 0x40d865
push 5
pop edx
mov ecx, str.error
call fcn.006402a2
mov ebx, eax
mov edi, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x40d7ce
push 5
pop edx
mov ecx, str.queuestruct_ErrorResponsestruct_ErrorResponse_with_2_elements
call fcn.006402a2
jmp 0x40d7bd