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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dbc04
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x532ab0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x532ab0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov byte [esp + 0x1b], 0
cmp ecx, 1
jge 0x40d84c
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, str.callbackid_error
mov dword [esp + 0xa8], 0
test eax, 0xffff0000
jne 0x40d724
movzx esi, ax
mov ecx, esi
call fcn.00401140
test eax, eax
je 0x40d732
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.00401f80
jmp 0x40d732
push str.callbackid_error
lea ecx, [esp + 0x24]
call fcn.00404640
push str.RunJSCallbackFunction
lea ecx, [esp + 0x18]
mov dword [esp + 0xac], 1
call fcn.004019c0
mov byte [esp + 0xa8], 2
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
mov byte [esp + 0xac], 3
call fcn.0041de50
add esp, 4
mov ebx, eax
mov byte [esp + 0xa8], 4
mov ecx, dword [edi + 0x5c]
push ebx
call fcn.00401a90
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x40d7af
push 2
push ebx
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0x60]
push eax
call fcn.004024e0
mov byte [esp + 0xa8], 3
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d7d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0xa8], 2
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d7f8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xa8], 1
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d81d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0xa8], 0xffffffff
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40e0de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40e0de
and dword [esp + 0x4c], 0xfffffe00
mov dword [esp + 0x50], 0
mov dword [esp + 0xa8], 6
mov eax, dword [esp + 0x84]
and eax, 0xffffff01
or eax, 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x7c], ecx
push ecx
push str.callbackId
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb0], 7
call fcn.004324d0
mov esi, eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x30]
call fcn.00431ac0
movsx ecx, byte [esi + 8]
mov ebx, dword [esp + 0x34]
mov byte [esi + 8], bl
mov edx, dword [esi + 4]
mov eax, ebx
xor eax, ecx
mov ecx, dword [esi]
and eax, 0xff
xor ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 4], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 8]
mov edx, ecx
shl edx, 0x17
sar edx, 0x1f
mov eax, ecx
shl edx, 8
xor eax, ebx
xor edx, ebx
and eax, 0x100
and edx, 0x100
xor eax, ecx
xor ebx, edx
lea ecx, [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esp + 0x34], ebx
call fcn.00431c10
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa8], 6
call fcn.00431c10
push ecx
push str.retObject
lea ecx, [esp + 0x4c]
call fcn.004324d0
push dword [esp + 0x14]
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.00431ac0
movsx edx, byte [esi + 8]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, ebx
xor ecx, edx
mov byte [esi + 8], bl
mov edx, dword [esi + 4]
and ecx, 0xff
xor ebx, ecx
mov ecx, dword [esi]
mov dword [esi], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 4], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x30], edx
mov edx, ecx
shl edx, 0x17
sar edx, 0x1f
mov eax, ecx
shl edx, 8
xor eax, ebx
xor edx, ebx
and eax, 0x100
and edx, 0x100
xor eax, ecx
xor ebx, edx
lea ecx, [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esp + 0x34], ebx
call fcn.00431c10
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
cmp byte [eax + 8], 0
je 0x40db52
mov dword [esp + 0x2c], str.function
mov dword [esp + 0x30], 0
mov edi, dword [eax]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00433220
mov ecx, dword [edi]
cmp eax, ecx
je 0x40da29
mov esi, dword [eax + 0x10]
mov edx, str.function
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x40da17
test bl, bl
je 0x40da13
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x40da17
add edx, 2
add esi, 2
test bl, bl
jne 0x40d9f7
xor edx, edx
jmp 0x40da1c
sbb edx, edx
or edx, 1
test edx, edx
sets dl
mov dword [esp + 0x10], eax
test dl, dl
je 0x40da2d
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x10]
mov eax, dword [eax]
cmp eax, ecx
je 0x40db4e
add eax, 0x18
cmp eax, 0x53ba18
je 0x40db4e
mov dword [esp + 0x2c], str.function
mov dword [esp + 0x30], 0
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00433220
mov ecx, dword [edi]
cmp eax, ecx
je 0x40daa5
mov esi, dword [eax + 0x10]
mov edx, str.function
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x40da93
test bl, bl
je 0x40da8f
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x40da93
add edx, 2
add esi, 2
test bl, bl
jne 0x40da73
xor edx, edx
jmp 0x40da98
sbb edx, edx
or edx, 1
test edx, edx
sets dl
mov dword [esp + 0x10], eax
test dl, dl
je 0x40daa9
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x10]
mov eax, dword [eax]
cmp eax, ecx
jne 0x40daba
mov eax, 0x53ba18
jmp 0x40dabd
add eax, 0x18
cmp byte [eax + 8], 4
jne 0x40db4e
mov dword [esp + 0x2c], str.function
mov dword [esp + 0x30], 0
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00433220
mov ecx, dword [edi]
cmp eax, ecx
je 0x40db23
mov esi, dword [eax + 0x10]
mov edx, str.function
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x40db11
test bl, bl
je 0x40db0d
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x40db11
add edx, 2
add esi, 2
test bl, bl
jne 0x40daf1
xor edx, edx
jmp 0x40db16
sbb edx, edx
or edx, 1
test edx, edx
sets dl
mov dword [esp + 0x10], eax
test dl, dl
je 0x40db27
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov byte [esp + 0xa8], 8
cmp eax, ecx
jne 0x40db40
mov eax, 0x53ba18
jmp 0x40db43
add eax, 0x18
push dword [eax]
lea ecx, [esp + 0x40]
call fcn.00404640
mov edi, dword [esp + 0x20]
mov dword [esp + 0x5c], vtable.Json::FastWriter.0
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
mov byte [esp + 0x78], 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xb0], 0xc
call fcn.004346e0
mov edx, eax
mov byte [esp + 0xa8], 0xd
cmp dword [edx + 0x14], 0x10
jb 0x40dba4
mov edx, dword [edx]
sub esp, 0x18
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x40dbc3
xor ecx, ecx
jmp 0x40dbd1
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dbc8
sub ecx, ebx
push ecx
push edx
mov ecx, esi
call fcn.00401d80
lea ecx, [esp + 0x34]
call fcn.0041dbd0
add esp, 0x18
mov byte [esp + 0xa8], 0xf
cmp dword [esp + 0x90], 0x10
jb 0x40dc04
push dword [esp + 0x7c]
call fcn.004a4ab0
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x90], 0xf
cmp dword [eax - 0xc], 0
mov dword [esp + 0x8c], 0
mov byte [esp + 0x7c], 0
jne 0x40dc3d
push 2
push 0x517404
lea ecx, [esp + 0x24]
call fcn.00401be0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
js 0x40e108
cmp ecx, edx
jg 0x40e108
or ebx, 0xffffffff
cmp word [eax + ecx*2], 0xa
jne 0x40dcfb
lea eax, [edx - 1]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
call fcn.0040f650
mov byte [esp + 0xa8], 0x10
mov edx, dword [eax]
mov esi, dword [esp + 0x1c]
lea ecx, [edx - 0x10]
add esi, 0xfffffff0
cmp ecx, esi
je 0x40dcd2
cmp dword [esi + 0xc], 0
jl 0x40dcc5
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40dcc5
call fcn.00401d10
mov dword [esp + 0x10], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dcbc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0x10
mov dword [esp + 0x1c], eax
jmp 0x40dcd2
push dword [edx - 0xc]
lea ecx, [esp + 0x20]
push edx
call fcn.00401be0
mov byte [esp + 0xa8], 0xf
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dcf7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
lea esi, [eax - 0x10]
push ecx
mov ecx, dword [esi]
mov dword [esp + 0x34], esp
mov eax, dword [ecx]
mov dword [esp + 0x2c], esp
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x40dd2d
cmp ecx, dword [esi]
jne 0x40dd2d
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40dd72
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
jne 0x40dd45
call fcn.00401eb0
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.004a540c
mov esi, dword [esp + 0x28]
add esp, 0x10
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 0x10]
mov dword [ecx], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 0x11
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x64]
push eax
mov byte [esp + 0xb4], 0x12
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x60]
mov byte [esp + 0xb4], 0x13
call eax
test al, al
mov byte [esp + 0xa8], 0xf
mov edx, dword [esp + 0x14]
sete byte [esp + 0x2b]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ddd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0x2b], 0
je 0x40e045
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, str._error
mov byte [esp + 0xa8], 0x14
test eax, 0xffff0000
jne 0x40de23
movzx esi, ax
mov ecx, esi
call fcn.00401140
test eax, eax
je 0x40de31
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00401f80
jmp 0x40de31
push str._error
lea ecx, [esp + 0x18]
call fcn.00404640
push str.RunJSCallbackFunction
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], 0x15
call fcn.004019c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa8], 0x16
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x64]
lea ecx, [esp + 0x14]
push ecx
mov edx, eax
lea ecx, [esp + 0x58]
mov byte [esp + 0xac], 0x17
call fcn.00404430
add esp, 4
mov edi, eax
mov byte [esp + 0xa8], 0x18
mov edx, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push edi
lea edx, [esp + 0x14]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xac], 0x19
call fcn.0041de50
add esp, 4
mov dword [esp + 0x40], eax
mov byte [esp + 0xa8], 0x1a
mov edi, dword [esp + 0x20]
push eax
mov ecx, dword [edi + 0x5c]
call fcn.00401a90
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x40dee2
push 2
push dword [esp + 0x44]
lea eax, [esp + 0x2c]
push eax
lea eax, [edi + 0x60]
push eax
call fcn.004024e0
mov byte [esp + 0xa8], 0x19
mov edx, dword [esp + 0x58]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40df07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0xa8], 0x18
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40df28
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xa8], 0x17
mov edx, dword [esp + 0x54]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40df4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xa8], 0x16
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40df72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xa8], 0x15
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40df97
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xa8], 0xf
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dfbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xa8], 0xc
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dfe1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x5c], vtable.Json::FastWriter.0
jb 0x40dffc
push dword [esp + 0x60]
call fcn.004a4ab0
add esp, 4
mov byte [esp + 0xa8], 6
mov edx, dword [esp + 0x3c]
add edx, 0xfffffff0
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
mov dword [esp + 0x5c], vtable.Json::Writer.0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40e0ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40e0ca
mov byte [esp + 0xa8], 0xc
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov byte [esp + 0x1b], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e06f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x5c], vtable.Json::FastWriter.0
jb 0x40e08a
push dword [esp + 0x60]
call fcn.004a4ab0
add esp, 4
mov byte [esp + 0xa8], 6
mov esi, dword [esp + 0x3c]
add esi, 0xfffffff0
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
mov dword [esp + 0x5c], vtable.Json::Writer.0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40e0ca
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0x44]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00431c10
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004a4ab5
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00401010
int3